Skip to content

Commit 71fd753

Browse files
committed
Testing Coverage
- Updated package.json scripts to be more consistent - Updated README with new testing scripts
1 parent ef1e5d6 commit 71fd753

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ Development is open to contribution, check the project board "Development" for t
5656
| test:unit-tests | Runs only unit tests and returns a report on which pass/fail |
5757
| test:code-style | Runs only code checks and returns a report on which pass/fail |
5858
| test:type-definitions | Attempts to compile and run a typescript file using this module |
59+
| test:coverage | Creates a testing coverage report and checks that testing meets minimum requirements |
60+
| test:coverage-report | Creates a testing coverage report |
61+
| test:coverage-check | Checks the last test coverage report to see if testing coverage meets the minimum requirements |
5962

6063
Eg. to run all lint tests
6164
```

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"test:type-definitions": "./node_modules/.bin/tsc test/typings.ts && node test/typings.js",
99
"test:code-style": "npm run lint:check",
1010
"test:unit-tests": "./node_modules/.bin/mocha test/**/*.spec.js",
11-
"test:report-coverage": "./node_modules/.bin/nyc npm run test:unit-tests --silent",
12-
"test:check-coverage": "./node_modules/.bin/nyc check-coverage",
13-
"test:coverage": "npm run test:report-coverage; npm run test:check-coverage",
11+
"test:coverage-report": "./node_modules/.bin/nyc npm run test:unit-tests --silent",
12+
"test:coverage-check": "./node_modules/.bin/nyc check-coverage",
13+
"test:coverage": "npm run test:coverage-report; npm run test:coverage-check",
1414
"test": "npm run test:unit-tests && npm run test:code-style && npm run test:type-definitions && npm run test:coverage",
1515
"lint:fix": "./node_modules/.bin/prettier --write 'src/**/*.{js,ts,css,html}' --write 'test/**/*.{js,ts,css,html}'",
1616
"lint:check": "./node_modules/.bin/eslint src test",

0 commit comments

Comments
 (0)