Open henvic opened 10 years ago
@alanshaw, maybe you want to see this.
Did you instrument your code? https://github.com/alanshaw/nodeunit-lcov-coveralls-example
Hi Alan, before I was loading the non-lcov 'version' of the code.
But now I'm loading the right one, but I don't get the right results as you can see in https://coveralls.io/files/168543783#L40
henvic at henvic-mp in ~/projects/liferay/grunt-cli-config (master●) $ node_modules/jscoverage/bin/jscoverage tasks && GRUNT_CLI_CONFIG_CODE_COVERAGE=1 nodeunit --reporter=lcov test coooov SF:tasks/config_options.js DA:11,1 DA:13,0 DA:20,0 DA:27,0 DA:29,0 DA:30,0 DA:33,0 DA:40,0 DA:48,0 DA:49,0 DA:52,0 DA:53,0 DA:56,0 DA:58,0 DA:62,0 DA:63,0 DA:65,0 end_of_record
Any idea why?
I have a problem with the lcov reporter and mocking my objects through the sandbox utility. I replace 'require' to allow mocking what is being required in a module which then screws up the code coverage numbers.
I'm trying to use the lvoc reporter on my project, but there's just no output from nodeunit.
If I invoke nodeunit test only:
If I try to invoke with the lcov reporter:
If I try to invoke with the html reporter:
nodeunit version 0.8.6, node.js version 0.10.26. Repo https://github.com/henvic/grunt-cli-config