Apex Unit Testing: test data and Test.setMock

Posted by in apex, salesforce

Recently, I was QAing some Apex unit tests and I kept encountering the notorious Apex System.CalloutException: “You have uncommitted work pending. Please commit or rollback before calling out” while running a unit test that created some test data before performing a callout (that was properly mocked via Test.setMock). After some debugging, I realized the test only failed when I inserted the test data via my TestFactory class; when I created the test data directly inside the test method, the test passed. I think this must be an issue with the…read more

How we use MavensMate’s “mm” CLI tool, GitHub, and CircleCI to do continuous tests/builds

Posted by in mavensmate, salesforce

As Mavens has grown over the past 5 years, the projects we work on have only become more complex, often using a mix of platforms, frameworks and programming languages (, Heroku, Amazon, Apex, Python, AngularJS, Ruby on Rails, etc.). Over the past 6 months, we’ve started to standardize our build/test automation on a service called CircleCI. For specifically, many of our projects follow a model that could be interesting to some: we write code in Sublime Text using MavensMate we commit code to GitHub we use CircleCI to run…read more

Dreamforce 2013

Posted by in salesforce

Excited to be attending another Dreamforce. This year, I’m speaking about performance tuning Visualforce, the new Tooling API, and of course MavensMate! I look forward to seeing everyone!

What’s new with MavensMate?

Posted by in mavensmate, salesforce

MavensMate undergoes some pretty radical changes with the most recent release, so I want to take this opportunity to give a brief rundown of its current state: “MavensMate” now refers to a tool for writing cross-platform IDEs for What does this mean? Well, the APIs that have historically provided the functionality for the TextMate & Sublime Text plugins have been rewritten in Python and “frozen” to run as executables on OSX, Linux, and Windows. The Sublime Text plugin has been rewritten to utilize the new executables. There are two…read more

MavensMate resource bundles

Posted by in mavensmate, salesforce

Resource Bundles is a MavensMate feature that enables developers to modify and deploy static resource archives more efficiently, directly from Sublime Text.