Skip to content

Commit

Permalink
add selendroid tests to grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Apr 12, 2013
1 parent d697927 commit 28df72a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
}]
Expand Down Expand Up @@ -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());
});
Expand Down
2 changes: 1 addition & 1 deletion grunt-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ module.exports.runMochaTests = function(grunt, appName, testType, deviceType, cb
runMochaProc();
});
} else {
cb(_.max(exitCodes) || null);
cb(_.max(exitCodes));
}
};
runMochaProc();
Expand Down

0 comments on commit 28df72a

Please sign in to comment.