istanbuljs / nyc

the Istanbul command line interface

Home Page:https://istanbul.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to generate code coverage while using xslt4node

Krishman23 opened this issue · comments

Hi,
I'm trying to use coverage test of mocha test and using xslt4node library
The result of mocha test is passed but the coverage executed after Ctrl+C with 0 coverage.

Sample code that I tried is :
https://github.com/Krishman23/xslt4node-client-nyc-test-coverage

npm (xslt4node) link :
https://www.npmjs.com/package/xslt4node

Environment info:
C:\Users\Asus>npm -v
8.1.2
C:\Users\Asus>node -v
v16.13.1

Actual Log:
Terminate batch job (Y/N)? ----------|---------|----------|---------|---------|-------------------

File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 0 0 0 0
---------- --------- ---------- --------- --------- -------------------

Expected Log (Somewhat)
Terminate batch job (Y/N)? ----------|---------|----------|---------|---------|-------------------

File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 50 100 0 50
index.js 50 100 0 50 14-15
---------- --------- ---------- --------- --------- -------------------