webdriverjs/grunt-webdriver — pull request #20 by dmoreno (2014-04-09 07:36:54+00:00)
Title: Added support for jasmine with grunt-jasmine-node code integration.

I think this PR could be interesting for other people. A user can configure the grunt task to run tests with jasmine instance of mocha. User must install 'jasmine-node' as project dependency.

Configuration is inside 'testSuite' option. For example:

webdriver:
{
options:
{
desiredCapabilities:
{
browserName: "phantomjs"
},
testSuite:
{
type: "jasmine",
args:
{
forceExit: true,
match: ".",
matchall: false,
extensions: "js",
specNameMatcher: "spec",
verbose: true,
}
}
},
e2e:
{
tests: [ "./test/e2e/" ]
}
}

Mocha is still the default option.

This PR is based on grunt-jasmine-node code: https://github.com/jasmine-contrib/grunt-jasmine-node