Skip to content

Commit

Permalink
Add docs and update timing, see #52
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 1, 2018
1 parent 75b17c4 commit 7dff750
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/local/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const _ = require( '../../../sherpa/lib/lodash-4.17.4.js' ); // eslint-disable-l
repo !== 'faradays-law'; // Broken at the moment, see https://github.com/phetsims/faradays-law/issues/147
} ).map( getUnitTestURL );

const timeout = 5000;
const timeout = 6000; // Timed so it takes about the same length of time as unit tests and linting, at least on my machine!
const allTests = [];
const pairs = [];

Expand Down
7 changes: 7 additions & 0 deletions scripts/auto-tests-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@
# https://www.codeword.xyz/2015/09/02/three-ways-to-script-processes-in-parallel/
# Run fast local tests as a sanity check before committing or pushing.

# Share the same random seed across instances
RAND=$RANDOM

# Split unit tests into multiple groups to speed up by parallelism
node js/local/test.js $RAND 3 0 UNIT &
node js/local/test.js $RAND 3 1 UNIT &
node js/local/test.js $RAND 3 2 UNIT &

# Run the long fuzz test on its own, since it takes a while
node js/local/test.js $RAND 1 0 FUZZ &

# Run linting separately since it takes a while
grunt lint-everything --repo=faradays-law &

wait
Expand Down

0 comments on commit 7dff750

Please sign in to comment.