saucelabs/sauce-java — pull request #10 by postalservice14 (2014-01-30 23:03:11+00:00)
Title: Add ability to run tests locally

Currently, if you're using testng and the SauceOnDemandTestListener, you have no way of running the test locally because the test listener always tries to communicate with the Sauce API.

This gives you the ability to provide an environment variable that sets the tests to run locally.