add selendroid tests to grunt

This commit is contained in:
Jonathan Lipps
2013-04-12 15:31:37 -07:00
parent d697927a12
commit 28df72a25d
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -47,6 +47,9 @@ module.exports = function(grunt) {
, ApiDemos: ['android', {
functional: ['test/functional/apidemos']
}]
, Selendroid: ['selendroid', {
functional: ['test/functional/selendroid']
}]
, Safari: ['ios', {
functional: ['test/functional/safari']
}]
@@ -74,6 +77,9 @@ module.exports = function(grunt) {
grunt.registerTask('android', "Run functional android tests", function(log) {
runTestsWithServer(grunt, null, 'functional', 'android', log === "log", this.async());
});
grunt.registerTask('selendroid', "Run functional selendroid tests", function(log) {
runTestsWithServer(grunt, null, 'functional', 'selendroid', log === "log", this.async());
});
grunt.registerTask('ios', "Run functional ios tests", function(log) {
runTestsWithServer(grunt, null, 'functional', 'ios', log === "log", this.async());
});
+1 -1
View File
@@ -111,7 +111,7 @@ module.exports.runMochaTests = function(grunt, appName, testType, deviceType, cb
runMochaProc();
});
} else {
cb(_.max(exitCodes) || null);
cb(_.max(exitCodes));
}
};
runMochaProc();