You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/01/25 12:17:36 UTC

[GitHub] garrensmith closed pull request #1048: Run Nightwatch tests with suiteRetries

garrensmith closed pull request #1048: Run Nightwatch tests with suiteRetries
URL: https://github.com/apache/couchdb-fauxton/pull/1048
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.travis.yml b/.travis.yml
index 16e203d91..8070bf9ec 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -17,7 +17,7 @@ before_script:
   - DIST=./dist/debug ./bin/fauxton &
   - sleep 30
 script:
-  - travis_retry ./node_modules/.bin/grunt nightwatch
+  - ./node_modules/.bin/grunt nightwatch_retries
 after_script:
   - npm run docker:down
 
diff --git a/Gruntfile.js b/Gruntfile.js
index 6ca330ec3..215bbf4a2 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -164,6 +164,14 @@ module.exports = function (grunt) {
         options: {
           maxBuffer: 1000 * 1024
         }
+      },
+      start_nightWatch_with_retries: {
+        command: 'node ' + __dirname + '/node_modules/nightwatch/bin/nightwatch' +
+        ' -c ' + __dirname + '/test/nightwatch_tests/nightwatch.json' +
+        ' --suiteRetries 3',
+        options: {
+          maxBuffer: 1000 * 1024
+        }
       }
     },
 
@@ -253,4 +261,6 @@ module.exports = function (grunt) {
    */
   //Start Nightwatch test from terminal, using: $ grunt nightwatch
   grunt.registerTask('nightwatch', ['initNightwatch', 'exec:start_nightWatch']);
+  //Same as above but the Nightwatch runner will retry tests 3 times before failing
+  grunt.registerTask('nightwatch_retries', ['initNightwatch', 'exec:start_nightWatch_with_retries']);
 };
diff --git a/package.json b/package.json
index cdd5fdb09..83a26dd06 100644
--- a/package.json
+++ b/package.json
@@ -130,6 +130,7 @@
     "dev": "node ./devserver.js",
     "devtests": "webpack-dev-server --config webpack.config.test-dev.js --debug --progress",
     "nightwatch": "grunt nightwatch",
+    "nightwatch_retries": "grunt nightwatch_retries",
     "start": "node ./bin/fauxton",
     "start-debug": "DIST=./dist/debug node ./bin/fauxton",
     "preversion": "node version-check.js && grunt release",


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services