Skip to content

Commit 3fe85bd

Browse files
committed
✅ Run Nightwatch tests from spec-ui/tests
1 parent e5b6259 commit 3fe85bd

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ node_modules
22
npm-debug.log
33
dist
44
release
5+
reports
56
.tmp
67
.sass-cache
78
app/bower_components

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ script:
1111
- gulp build
1212
- gulp server:dist &
1313
- set -e
14-
- gulp nightwatch --env ci
14+
- gulp nightwatch --env ci; echo $?
1515
- killall gulp
1616
after_failure:
1717
- killall gulp

Diff for: gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ gulp.task('nightwatch', function() {
112112
.pipe(nightwatch({
113113
configFile : './test/nightwatch.json',
114114
cliArgs : [
115-
'--test ' + 'test/spec-ui/test.js',
115+
// '--test ' + 'test/spec-ui/test.js',
116116
'--env ' + (util.env.env || 'default')
117117
]
118118
}))

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"gulp-uglify": "^1.4.1",
3333
"jshint-stylish": "^2.1.0",
3434
"merge-stream": "^1.0.0",
35-
"nightwatch": "^0.8.6"
35+
"nightwatch": "^0.8.9"
3636
},
3737
"engines": {
3838
"node": ">=0.8.0"

Diff for: test/nightwatch.json

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"src_folders": ["test/spec-ui/tests"],
23
"output_folder" : "reports",
34
"custom_commands_path" : "test/spec-ui/commands",
45
"custom_assertions_path" : "",
@@ -17,13 +18,6 @@
1718
}
1819
},
1920

20-
"test_runner": {
21-
"type" : "mocha",
22-
"options" : {
23-
"ui" : "bdd"
24-
}
25-
},
26-
2721
"test_settings" : {
2822
"ci": {
2923
"launch_url" : "http://localhost:9000",
@@ -34,6 +28,7 @@
3428
"access_key" : "${SAUCE_ACCESS_KEY}",
3529

3630
"end_session_on_fail" : true,
31+
"skip_testcases_on_fail": true,
3732
"silent" : true,
3833
"desiredCapabilities" : {
3934
"name" : "CI",
@@ -51,6 +46,8 @@
5146
"selenium_port" : 4444,
5247
"selenium_host" : "localhost",
5348
"silent" : true,
49+
"end_session_on_fail" : true,
50+
"skip_testcases_on_fail": true,
5451
"screenshots" : {
5552
"enabled" : false,
5653
"path" : ""

0 commit comments

Comments
 (0)