Skip to content

Commit

Permalink
✅ Run Nightwatch tests from spec-ui/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wwebfor committed Dec 11, 2015
1 parent e5b6259 commit 3fe85bd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,6 +2,7 @@ node_modules
npm-debug.log
dist
release
reports
.tmp
.sass-cache
app/bower_components
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -11,7 +11,7 @@ script:
- gulp build
- gulp server:dist &
- set -e
- gulp nightwatch --env ci
- gulp nightwatch --env ci; echo $?
- killall gulp
after_failure:
- killall gulp
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Expand Up @@ -112,7 +112,7 @@ gulp.task('nightwatch', function() {
.pipe(nightwatch({
configFile : './test/nightwatch.json',
cliArgs : [
'--test ' + 'test/spec-ui/test.js',
// '--test ' + 'test/spec-ui/test.js',
'--env ' + (util.env.env || 'default')
]
}))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -32,7 +32,7 @@
"gulp-uglify": "^1.4.1",
"jshint-stylish": "^2.1.0",
"merge-stream": "^1.0.0",
"nightwatch": "^0.8.6"
"nightwatch": "^0.8.9"
},
"engines": {
"node": ">=0.8.0"
Expand Down
11 changes: 4 additions & 7 deletions test/nightwatch.json
@@ -1,4 +1,5 @@
{
"src_folders": ["test/spec-ui/tests"],
"output_folder" : "reports",
"custom_commands_path" : "test/spec-ui/commands",
"custom_assertions_path" : "",
Expand All @@ -17,13 +18,6 @@
}
},

"test_runner": {
"type" : "mocha",
"options" : {
"ui" : "bdd"
}
},

"test_settings" : {
"ci": {
"launch_url" : "http://localhost:9000",
Expand All @@ -34,6 +28,7 @@
"access_key" : "${SAUCE_ACCESS_KEY}",

"end_session_on_fail" : true,
"skip_testcases_on_fail": true,
"silent" : true,
"desiredCapabilities" : {
"name" : "CI",
Expand All @@ -51,6 +46,8 @@
"selenium_port" : 4444,
"selenium_host" : "localhost",
"silent" : true,
"end_session_on_fail" : true,
"skip_testcases_on_fail": true,
"screenshots" : {
"enabled" : false,
"path" : ""
Expand Down

0 comments on commit 3fe85bd

Please sign in to comment.