-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·29 lines (23 loc) · 1.14 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
source $(dirname $0)/scripts/utils.sh
source $(dirname $0)/scripts/aux.sh
PATH=$PATH:node_modules/.bin
ava="ava --serial --fail-fast test/avaTest.js"
best="node test/bestTest.js"
jest="node --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand" # can't specify file here, experimental-vm-modules needed for ESM
lab="lab test/labTest.js"
mocha="mocha -r chai/register-expect.js --inline-diffs --bail --ui=tdd --leaks --reporter min test/mochaTest.js"
tap="tap --disable-coverage --reporter=silent ./test/tapTest.js"
tape="tape test/tapeTest.js"
tehanu="node test/tehanuTest.js"
uvu="node test/uvuTest.js"
zora="node ./test/zoraTest.js"
native="node --test-reporter dot ./test/nativeTest.js"
vitest="vitest" #can't specify file here
notest="node test/special/notestTest.js"
xv="xv test/special/xvTest.js"
bun="bun test ./test/bunTest.js"
perf="hyperfine -N --warmup 5 --export-markdown out/results.md '$notest' '$best' '$bun' '$tehanu' '$zora' '$xv' '$native' '$uvu' '$tape' '$mocha' '$lab' '$tap' '$ava' '$vitest' '$jest'"
genBaseTests=_genBaseTests
# usage: ./run.sh LIBNAME
echo $(purple "command") "${!1:-not found}"; eval ${!1}