commit
f8790c1ed7
@ -0,0 +1,5 @@ |
||||
module.exports = { |
||||
norpc: true, |
||||
testCommand: 'node --max-old-space-size=4096 ../node_modules/.bin/truffle test --network coverage', |
||||
skipFiles: ['lifecycle/Migrations.sol'] |
||||
} |
@ -1,3 +1,25 @@ |
||||
#! /bin/bash |
||||
|
||||
SOLIDITY_COVERAGE=true ./node_modules/.bin/solidity-coverage |
||||
|
||||
|
||||
output=$(nc -z localhost 8555; echo $?) |
||||
[ $output -eq "0" ] && trpc_running=true |
||||
if [ ! $trpc_running ]; then |
||||
echo "Starting testrpc-sc to generate coverage" |
||||
# we give each account 1M ether, needed for high-value tests |
||||
./node_modules/ethereumjs-testrpc-sc/bin/testrpc --gasLimit 0xfffffffffff --port 8555 \ |
||||
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,1000000000000000000000000" \ |
||||
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501201,1000000000000000000000000" \ |
||||
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501202,1000000000000000000000000" \ |
||||
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501203,1000000000000000000000000" \ |
||||
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501204,1000000000000000000000000" \ |
||||
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501205,1000000000000000000000000" \ |
||||
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501206,1000000000000000000000000" \ |
||||
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501207,1000000000000000000000000" \ |
||||
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501208,1000000000000000000000000" \ |
||||
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501209,1000000000000000000000000" \ |
||||
> /dev/null & |
||||
trpc_pid=$! |
||||
fi |
||||
SOLIDITY_COVERAGE=true && ./node_modules/.bin/solidity-coverage |
||||
|
||||
|
Loading…
Reference in new issue