Restructure test folders / move npm commands to shell scripts (#841)
parent
1c257b0c74
commit
fbed395a17
@ -0,0 +1,14 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
SILENT=true node --max-old-space-size=4096 \ |
||||
./node_modules/.bin/nyc \ |
||||
--reporter=lcov \ |
||||
--exclude '**/sc_temp/**' \ |
||||
--exclude '**/test/**/' \ |
||||
--exclude 'plugins/resources/matrix.js' \ |
||||
-- \ |
||||
mocha \ |
||||
test/units/* test/integration/* \ |
||||
--timeout 100000 \ |
||||
--no-warnings \ |
||||
--exit \ |
@ -0,0 +1,11 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
node --max-old-space-size=4096 \ |
||||
./node_modules/.bin/nyc \ |
||||
--exclude '**/sc_temp/**' \ |
||||
--exclude '**/test/**/' \ |
||||
-- \ |
||||
mocha test/integration/* \ |
||||
--timeout 100000 \ |
||||
--no-warnings \ |
||||
--exit |
@ -1,20 +0,0 @@ |
||||
#!/usr/bin/env bash |
||||
# |
||||
# E2E: runs sc-forks/hegic/contracts-v1 coverage and publishes html report in netlify |
||||
# for CI deployment preview. This is the netlify "build" step. |
||||
# |
||||
|
||||
set -o errexit |
||||
|
||||
# Clone target |
||||
rm -rf contracts-v1 |
||||
git clone https://github.com/sc-forks/contracts-v1.git |
||||
cd contracts-v1 |
||||
|
||||
# Install solidity-coverage @ current commit |
||||
yarn |
||||
yarn add --dev https://github.com/sc-forks/solidity-coverage.git#$COMMIT_REF |
||||
|
||||
cat package.json |
||||
|
||||
npm run coverage |
@ -0,0 +1,11 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
node --max-old-space-size=4096 \ |
||||
./node_modules/.bin/nyc \ |
||||
--exclude '**/sc_temp/**' \ |
||||
--exclude '**/test/**/' \ |
||||
-- \ |
||||
mocha test/units/* \ |
||||
--timeout 100000 \ |
||||
--no-warnings \ |
||||
--exit |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue