Skip to content

Commit f47a9ea

Browse files
authored
Merge pull request #19 from Loksly/copilot/add-code-coverage-mechanism
Use npx for nyc coverage command
2 parents 4f9fca6 + 9cd4c56 commit f47a9ea

3 files changed

Lines changed: 1827 additions & 9 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,19 @@ npm install nodehl7 --save
1919
To run tests:
2020
```bash
2121
npm test
22+
```
2223

24+
To run tests with code coverage:
25+
```bash
26+
npm run coverage
2327
```
2428

29+
This will generate coverage reports in the `coverage/` directory:
30+
- `coverage/lcov.info` - LCOV format for CI/GitHub Actions integration
31+
- `coverage/lcov-report/index.html` - HTML report for local viewing
32+
- `coverage/coverage-final.json` - JSON format for programmatic access
33+
34+
2535

2636
```javascript
2737
const Hl7lib = require('nodehl7');

0 commit comments

Comments
 (0)