Compare commits
2 Commits
c3f896f130
...
172f0c5994
Author | SHA1 | Date |
---|---|---|
Ladd Hoffman | 172f0c5994 | |
Ladd Hoffman | cc33e4d694 |
|
@ -58,7 +58,7 @@ npm run test
|
|||
## Run test coverage report
|
||||
|
||||
```bash
|
||||
npm run test:coverage
|
||||
npm run coverage
|
||||
```
|
||||
|
||||
## Run multiple live nodes locally as separate processes
|
||||
|
|
|
@ -3,36 +3,36 @@
|
|||
> jest --coverage
|
||||
|
||||
PASS __tests__/lossy.ts
|
||||
PASS __tests__/lossless.ts
|
||||
PASS __tests__/peer-address.ts
|
||||
PASS __tests__/run/002-two-nodes.ts
|
||||
PASS __tests__/lossless.ts
|
||||
PASS __tests__/run/001-single-node.ts
|
||||
----------------------|---------|----------|---------|---------|----------------------------------------------------
|
||||
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
||||
----------------------|---------|----------|---------|---------|----------------------------------------------------
|
||||
All files | 86.86 | 62.41 | 82.7 | 87.38 |
|
||||
src | 87.94 | 68.06 | 82.45 | 88.09 |
|
||||
collection.ts | 88.31 | 71.42 | 66.66 | 90.54 | 62-65,114-122,172
|
||||
config.ts | 94.44 | 89.65 | 50 | 94.44 | 22
|
||||
deltas.ts | 64.44 | 50 | 76.92 | 64.44 | 27-30,42-46,55-56,64-73
|
||||
entity.ts | 100 | 100 | 100 | 100 |
|
||||
http-api.ts | 59.7 | 13.04 | 38.88 | 59.7 | 32,37,44-60,66,79-80,85-92,100,121,129-130,145-151
|
||||
lossless.ts | 98.27 | 91.66 | 100 | 100 | 96
|
||||
lossy.ts | 100 | 85.71 | 100 | 100 | 38
|
||||
node.ts | 100 | 100 | 100 | 100 |
|
||||
peers.ts | 96.82 | 100 | 100 | 96.61 | 125-126
|
||||
pub-sub.ts | 100 | 100 | 100 | 100 |
|
||||
request-reply.ts | 95.65 | 0 | 100 | 95.34 | 46,59
|
||||
typed-collection.ts | 100 | 100 | 100 | 100 |
|
||||
types.ts | 100 | 100 | 100 | 100 |
|
||||
src/util | 74.54 | 31.81 | 82.35 | 78 |
|
||||
md-files.ts | 74.54 | 31.81 | 82.35 | 78 | 52-56,90-94,108-115
|
||||
util | 100 | 100 | 100 | 100 |
|
||||
app.ts | 100 | 100 | 100 | 100 |
|
||||
----------------------|---------|----------|---------|---------|----------------------------------------------------
|
||||
PASS __tests__/run/002-two-nodes.ts
|
||||
----------------------|---------|----------|---------|---------|------------------------------------------------
|
||||
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
||||
----------------------|---------|----------|---------|---------|------------------------------------------------
|
||||
All files | 85.48 | 61.26 | 82.83 | 85.93 |
|
||||
src | 88.35 | 68.06 | 84.21 | 88.52 |
|
||||
collection.ts | 89.61 | 71.42 | 73.33 | 91.89 | 62-65,114-122
|
||||
config.ts | 94.44 | 89.65 | 50 | 94.44 | 22
|
||||
deltas.ts | 64.44 | 50 | 76.92 | 64.44 | 27-30,42-46,55-56,64-73
|
||||
entity.ts | 100 | 100 | 100 | 100 |
|
||||
http-api.ts | 61.19 | 13.04 | 44.44 | 61.19 | 32,37,44-60,66,79-80,85-92,100,129-130,145-151
|
||||
lossless.ts | 98.27 | 91.66 | 100 | 100 | 96
|
||||
lossy.ts | 100 | 85.71 | 100 | 100 | 38
|
||||
node.ts | 100 | 100 | 100 | 100 |
|
||||
peers.ts | 96.82 | 100 | 100 | 96.61 | 125-126
|
||||
pub-sub.ts | 100 | 100 | 100 | 100 |
|
||||
request-reply.ts | 95.65 | 0 | 100 | 95.34 | 46,59
|
||||
typed-collection.ts | 100 | 100 | 100 | 100 |
|
||||
types.ts | 100 | 100 | 100 | 100 |
|
||||
src/util | 58.62 | 26.08 | 72.22 | 60.37 |
|
||||
md-files.ts | 58.62 | 26.08 | 72.22 | 60.37 | 53-57,74-77,91-108,116-123
|
||||
util | 100 | 100 | 100 | 100 |
|
||||
app.ts | 100 | 100 | 100 | 100 |
|
||||
----------------------|---------|----------|---------|---------|------------------------------------------------
|
||||
|
||||
Test Suites: 5 passed, 5 total
|
||||
Tests: 7 passed, 7 total
|
||||
Snapshots: 0 total
|
||||
Time: 3.709 s, estimated 5 s
|
||||
Time: 3.831 s, estimated 4 s
|
||||
Ran all test suites.
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"build:watch": "tsc --watch",
|
||||
"lint": "eslint",
|
||||
"test": "jest",
|
||||
"test:coverage": "./scripts/coverage.sh"
|
||||
"coverage": "./scripts/coverage.sh"
|
||||
},
|
||||
"jest": {
|
||||
"testEnvironment": "node",
|
||||
|
|
|
@ -13,4 +13,4 @@ done
|
|||
|
||||
dest="./markdown/coverage_report.md"
|
||||
|
||||
npm run test -- --coverage 2>&1 | tee "$dest"
|
||||
npm run test -- --coverage 2>&1 | tee | sed 's/\s*$//' > "$dest"
|
||||
|
|
Loading…
Reference in New Issue