Skip to content

Commit

Permalink
Add code coverage to release process
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristin committed May 19, 2022
1 parent 33eb5c6 commit f3a42c9
Show file tree
Hide file tree
Showing 5 changed files with 2,812 additions and 81 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ data/
*.log

.vscode/
.nyc_output
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ Due to the performance improvements in the 1.5 version of CaSS, we highly recomm
* Increment version number in package.json
* Increment elasticsearch version number to latest minor/revision in docker/standalone/DockerFile
* `npm install`
* `npm test` - Must not fail any tests.
* `npm run testWithCoverage`
* In another command window, `npm run test:mocha` - Must not fail any tests.
* In the command window running testWithCoverage, `ctrl+c`. Record the output of the code coverage for the tests in codeCoverage.md.
* Update src/main/webapp to point at the appropriate gh-pages commit.
* Update CHANGELOG.md
* Update README.md
Expand Down
35 changes: 35 additions & 0 deletions codeCoverage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## Release 1.5.8
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
--------------------------------|---------|----------|---------|---------|-------------------------------------------------------------------------
All files | 45.24 | 32.85 | 49.67 | 45.75 |
main | 84.72 | 52.94 | 83.33 | 84.28 |
server.js | 84.72 | 52.94 | 83.33 | 84.28 | 30,85,91,96-112
main/server | 62.23 | 50.11 | 72.41 | 62.22 |
skyId.js | 83.23 | 47.5 | 46.15 | 83.23 | ...-117,120,122,130,133,144,150-152,155,158-159,163,166,169,181,184,188
skyRepo.js | 74.35 | 56.55 | 85.93 | 73.89 | ...186,1188-1189,1198,1202,1205,1208-1210,1213-1215,1223,1227-1228,1238
util.js | 9.36 | 14.54 | 14.28 | 9.44 | 30-32,40-43,55,68-249,254-437,444-479,545,548-558
websocket.js | 31.25 | 0 | 33.33 | 33.33 | 4-11,17-20
main/server/adapter/asn | 20.75 | 16.61 | 27.27 | 20.63 |
asn.js | 20.75 | 16.61 | 27.27 | 20.63 | ...56,60,83,104,113,116-133,136-152,155-163,174,211-489,504-660,667-671
main/server/adapter/case | 72.22 | 54.75 | 44.44 | 73.5 |
caseAdapter.js | 75.4 | 56.28 | 50 | 77.28 | ...-110,118,150-160,199,210,221,246,273-278,315-320,330,363,374,441,452
caseIngest.js | 66.25 | 50 | 39.13 | 66.45 | ...6,71-75,83-86,99,102,134-136,152,182-194,200,213,215,223,232,240-243
main/server/adapter/ceasn | 31.74 | 26.28 | 47.5 | 32.2 |
ceasn.js | 31.74 | 26.28 | 47.5 | 32.2 | ...438,1449-1638,1648-1650,1657-1659,1678-1679,1687,1689,1694,1703-1707
main/server/adapter/jsonLd | 1.92 | 0 | 0 | 1.92 |
jsonLd.js | 1.92 | 0 | 0 | 1.92 | 7-87
main/server/adapter/openbadges | 10.06 | 0 | 0 | 10.13 |
openbadges.js | 10.06 | 0 | 0 | 10.13 | 4-13,17,22-31,35-42,52-59,77-113,123-154,168-222,226-253
main/server/adapter/replicate | 20.98 | 18.51 | 14.28 | 21.51 |
replicate.js | 20.98 | 18.51 | 14.28 | 21.51 | 16-22,28-87,93-121
main/server/adapter/xapi | 11.79 | 0 | 0 | 12.7 |
xapi.js | 11.79 | 0 | 0 | 12.7 | 5-15,21-37,42-51,55-80,84-94,98-108,112-182,187-188,206,213-222,227-247
main/server/profile | 14.4 | 0 | 9.09 | 15.51 |
coordinator.js | 20.89 | 0 | 25 | 21.21 | 12-96,112-113
util.js | 6.89 | 0 | 0 | 8 | 5-15,21-82
main/server/shims | 56.6 | 36.44 | 51.28 | 58.11 |
auth.js | 17.64 | 15.38 | 25 | 17.64 | 4-33,41-42,57-71,76-80,83-88,93-121
cassproject.js | 51.21 | 100 | 36.36 | 51.21 | 2-7,14-20,32,44,51-58,69,77-82,95
levr.js | 67.01 | 42.77 | 67.5 | 69.88 | ...-288,310,312,314,316-319,325-332,356,366-367,381-382,418,422-427,434
stjs.js | 25 | 25 | 0 | 25 | 3-5
--------------------------------|---------|----------|---------|---------|-------------------------------------------------------------------------
Loading

0 comments on commit f3a42c9

Please sign in to comment.