Skip to content

Commit

Permalink
test: add coverage reporter tool (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
sqfasd committed Aug 24, 2018
1 parent 0dd219d commit 953beb2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ public/dist/chains/*
*.save
data/*
!data/.gitkeep
.nyc_output
coverage
26 changes: 26 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"check-coverage": false,
"per-file": false,
"lines": 80,
"statements": 80,
"functions": 80,
"branches": 80,
"include": [
"app.js",
"src/contract/*.js",
"src/interface/*.js"
],
"exclude": [
],
"reporter": [
"lcov",
"text",
"json",
"html"
],
"extension": [
".js"
],
"cache": true,
"all": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"start": "node app.js",
"test": "jest --globalSetup ./test/integration/setup.js --globalTeardown ./test/integration/teardown.js ./test/integration/"
"test": "LOG_LEVEL=error jest --globalSetup ./test/integration/setup.js --globalTeardown ./test/integration/teardown.js ./test/integration"
},
"author": "Qingfeng Shan <[email protected]>",
"dependencies": {
Expand Down
1 change: 0 additions & 1 deletion test/integration/contract/basic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ describe('basic contracts', () => {
const amount = 25000000000
const f = 10000000

await lib.sleep(5000)
// Get balance before transfer
const originalBalance = await lib.getBalanceAsync(address)

Expand Down

0 comments on commit 953beb2

Please sign in to comment.