mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-14 07:21:32 -04:00
test: upgrade tap, configure coverage thresholds
As part of simplifying the CI setup I plan to not explicitly specify `--jobs=4` to `tap` going forward. Upgrading to a newer version of `tap` means that it will automatically parallelize jobs according to available CPU count, which should be better anyway. Only one of our tests was incompatible with newer versions of `tap`, so this commit includes a compatibility fix there. Also, by default newer versions of `tap` calculate coverage and consider the test run to fail if below the configured thresholds. The default is 100% coverage and we're not there, so I adjusted the thresholds to match where we're at for now. We can ratchet those up over time.
This commit is contained in:
parent
c2c66a68d6
commit
05f8692300
3 changed files with 5783 additions and 6757 deletions
test/unit
|
@ -6,12 +6,11 @@ const test = tap.test;
|
|||
let originals;
|
||||
let newBlocks;
|
||||
|
||||
tap.beforeEach(done => {
|
||||
tap.beforeEach(() => {
|
||||
originals = simpleStack;
|
||||
// Will be mutated so make a copy first
|
||||
newBlocks = JSON.parse(JSON.stringify(simpleStack));
|
||||
newBlockIds(newBlocks);
|
||||
done();
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue