Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
Add various robustness tweaks for mocha.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-roemer committed Oct 19, 2015
1 parent 241f5b5 commit aeba772
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ script:
{ "ROWDY_SETTINGS":"sauceLabs.safari_8_OS_X_10_10_Desktop" },
{ "ROWDY_SETTINGS":"sauceLabs.chrome_43_OS_X_10_10_Desktop" },
{ "ROWDY_SETTINGS":"sauceLabs.chrome_43_Windows_2012_R2_Desktop" },
{ "ROWDY_SETTINGS":"sauceLabs.firefox_9_OS_X_10_9_Desktop" },
{ "ROWDY_SETTINGS":"sauceLabs.firefox_9_Windows_2012_R2_Desktop" },
{ "ROWDY_SETTINGS":"local.firefox" } ]'
# Unreliable Sauce settings
# { "ROWDY_SETTINGS":"sauceLabs.firefox_9_OS_X_10_9_Desktop" },

# Manually send coverage reports to coveralls.
- ls coverage/*/lcov.info | cat
- cat coverage/*/lcov.info | ./node_modules/.bin/coveralls || echo "Coveralls upload failed"
1 change: 1 addition & 0 deletions test/func/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--require test/func/setup.js
--recursive
--timeout 25000
--full-trace
1 change: 0 additions & 1 deletion test/func/spec/base.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ var ELEM_WAIT = isSauceLabs ? 5000 : 500; // Global wait.

adapter.before();
before(function (done) {
if (isSauceLabs) { this.timeout(20000); }
adapter.client
// Set timeout for waiting on elements.
.timeoutsImplicitWait(ELEM_WAIT)
Expand Down

0 comments on commit aeba772

Please sign in to comment.