Open pocesar opened 10 years ago
Ok, why not. How did you calculate this? Did it get any better with ByteBuffer 3?
if I recall correctly it was
npm install istanbul -g
istanbul cover ./node_modules/testjs/bin/testjs tests/suite.js
didn't test it again, will do and report
EDIT: Nope, that's not the command line, I think I had to edit the test suite for it to be accepted on istanbul
comment out the lines containing .log
methods and do the coverage using nodeunit instead.
istanbul cover node_modules/nodeunit/bin/nodeunit tests
current coverage is worse than the first coverage
=============================== Coverage summary ===============================
Statements : 57.05% ( 2642/4631 )
Branches : 50.69% ( 2154/4249 )
Functions : 63.48% ( 186/293 )
Lines : 49.69% ( 1585/3190 )
================================================================================
Well, that's sad. Looks like there is still a lot of testing work to do.
Code coverage is almost perfect, Istanbul is reporting:
Aim for 100% of code coverage is good thing since it's the "base" of
Protobuf.js