Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't get coverage to show in expresso 0.9.2 and node 0.6.4 #163

Open
katowulf opened this issue Mar 22, 2012 · 1 comment
Open

can't get coverage to show in expresso 0.9.2 and node 0.6.4 #163

katowulf opened this issue Mar 22, 2012 · 1 comment

Comments

@katowulf
Copy link

Hi, I've tried every permutation I can to get coverage to show in expresso and can't seem to sort it out.

[myuser ~/myapp]$  node -v; expresso -v; node-jscoverage -V
v0.6.4
0.9.2
jscoverage 0.4
Character encoding support: iconv

[myuser ~/myapp]$ node-jscoverage lib lib-cov

[myuser ~/myapp]$ ls -d */
lib/  lib-cov/  test/

[myuser ~/myapp]$ cat lib-cov/util/index.js
/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['util/index.js']) {
  _$jscoverage['util/index.js'] = [];
  _$jscoverage['util/index.js'][2] = 0;
  _$jscoverage['util/index.js'][3] = 0;
  _$jscoverage['util/index.js'][4] = 0;
  _$jscoverage['util/index.js'][5] = 0;
  _$jscoverage['util/index.js'][7] = 0;
... and so on ...

[myuser ~/myapp]$ cat test/test.js

var myapp = require('myapp');

exports.testIsArray = function(beforeExit, assert) {
   assert.equal(false, myapp.util.isArray(null));
}

[myuser ~/myapp]$ expresso

   100% 1 tests

[myuser ~/myapp]$ expresso -c

   100% 1 tests

[myuser ~/myapp]$ expresso -I lib-cov -c

   100% 1 tests

[myuser ~/myapp]$ expresso -I lib-cov --cov

   100% 1 tests
@nob13
Copy link
Contributor

nob13 commented May 24, 2013

I have the same problem, did you found a solution yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants