fxa-auth-server: code coverage

Edwin Wong edwong at mozilla.com
Wed Nov 20 08:23:01 PST 2013


I actually found and read that post yesterday! Great to find you on our list.


----- Original Message -----
From: "Sergi Mansilla" <sergi at comoyo.com>
To: dev-fxacct at mozilla.org, "Andrew Chilton" <chilts at mozilla.com>, "Peter DeHaan" <pdehaan at mozilla.com>, "Edwin Wong" <edwong at mozilla.com>, "James Bonacci" <jbonacci at mozilla.com>, "Ryan Kelly" <rkelly at mozilla.com>
Sent: Wednesday, November 20, 2013 1:27:50 AM
Subject: Re: fxa-auth-server: code coverage

Nice! I wrote a post some time ago about test coverage using Istanbul, and I use it successfully in some of my projects in GitHub, just in case you are still deciding.



Sergi Mansilla

On 20 Nov 2013 at 02:36:59, 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!  
Notes: https://github.com/mozilla/persona/pull/2272  

## Using Istanbul:  
*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`.  

throw e;  
SyntaxError: Unexpected token: punc ({)  
at line 0:444 in expression:  

Dev-fxacct mailing list  
Dev-fxacct at mozilla.org  

More information about the Dev-fxacct mailing list