fxa-auth-server: code coverage
Edwin Wong
edwong at mozilla.com
Fri Nov 22 16:23:54 PST 2013
here’s an update report with Istanbul. jrgm mentioned that node-cover counts comments/white space as counted lines.
http://people.mozilla.org/~ewong2/istanbul2/
Lines: 3587 9321 38.5 %
Functions: 413 848 48.7 %
This one includes the server. I ran the server locally via istanbul.
I used lcov’s genhtml to merge all the result output lcov.info files.
-e
On Nov 19, 2013, at 5:26 PM, Edwin Wong <edwong at mozilla.com> wrote:
> hacked a bit on code coverage today. I tried istanbul, tap’s code coverage, and node-coverage which is what persona used.
>
> ## Using node-cover:
> the easiest to run!
> http://people.mozilla.org/~ewong2/cover_html/
> Notes: https://github.com/mozilla/persona/pull/2272
>
> ## Using Istanbul:
> http://people.mozilla.org/~ewong2/istanbul_cov/lcov-report/
> *Low confidence* in the numbers here, not sure if it’s merging runs correctly.
>
> ## Using TAP’s experimental code coverage: I got parse errors:
> Edwin at edog:~/github/mozilla/fxa-auth-server$ TAP_COV=1 tap ./test/run/verification_tests.js --cover=./lib --coverage-dir=./coverage
> path.existsSync is now called `fs.existsSync`.
>
> /opt/local/lib/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/index.js:26
> throw e;
> ^
> SyntaxError: Unexpected token: punc ({)
> at line 0:444 in expression:
>
>
> cheers,
> Edwin
> _______________________________________________
> Dev-fxacct mailing list
> Dev-fxacct at mozilla.org
> https://mail.mozilla.org/listinfo/dev-fxacct
More information about the Dev-fxacct
mailing list