You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2018/01/25 12:17:34 UTC

[couchdb-fauxton] branch master updated: Run Nightwatch tests with suiteRetries (#1048)

This is an automated email from the ASF dual-hosted git repository.

garren pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-fauxton.git


The following commit(s) were added to refs/heads/master by this push:
     new 8759a25  Run Nightwatch tests with suiteRetries (#1048)
8759a25 is described below

commit 8759a25c5f91def78789fac4ea5f3583f188f3d3
Author: Antonio Maranhao <30...@users.noreply.github.com>
AuthorDate: Thu Jan 25 07:17:32 2018 -0500

    Run Nightwatch tests with suiteRetries (#1048)
---
 .travis.yml  |  2 +-
 Gruntfile.js | 10 ++++++++++
 package.json |  1 +
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 16e203d..8070bf9 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 6ca330e..215bbf4 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 cdd5fdb..83a26dd 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",

-- 
To stop receiving notification emails like this one, please contact
garren@apache.org.