You can boot the Locomotive app yourself:
var locomotive = require('locomotive');
describe('Test Name', function() {
before(function(done) {
// instantiate locomotive app
this.app = new locomotive.Locomotive();
this.app.boot(ROOTDIRECTORY, ENVIRONMENT, function() {
done();
});
});
// your test cases
});
ROOT_DIRECTORY is the directory where your Locomotive project lives, ENVIRONMENT is the environment in which you want your Locomotive app to run (usually test
).