grunt-protractor-coverage icon indicating copy to clipboard operation
grunt-protractor-coverage copied to clipboard

makeReport throws Cannot read property 'text' of undefined error

Open chinnipayrange opened this issue 9 years ago • 6 comments

makeReport task throws error as below,

[4mRunning "makeReport" task[24m [31mFatal error: Cannot read property 'text' of undefined[39m

I'm able to see the lcov files with index.html (reports/lcov-report/index.html) with coverage data at the high level, but link to individual file level details are broken. Looking around I couldn't get much details about this error, so want to know if its an issue with the grunt-protractor-coverage or configuration in my project.

chinnipayrange avatar Dec 29 '15 18:12 chinnipayrange

Hi chinnipayrange, Were you able to debug this issue? Am facing the same issue. Please let me know if you have any fix for this.

Thanks!

BalachanderJ avatar Feb 22 '16 21:02 BalachanderJ

Nope I couldn't debug the issue as my priorities changed. Since I'm able to get the coverage reports, for now I'm living with it.

chinnipayrange avatar Feb 23 '16 05:02 chinnipayrange

I am also facing same issue. Please post solution if you find one

FloridaGators avatar Apr 07 '16 22:04 FloridaGators

Solved this issue by placing back original non-instrumented *.js files in folders. I was placing instrumented code to replace original files as can't get connect task to work.

FloridaGators avatar Apr 08 '16 23:04 FloridaGators

Confirmed. This issue is solved by coping back non-instrumented files over your instrumented files before running the makeReport task. Executing the makeReport task on instrumented files corrupts the HTML report. You cannot drill down from lcov-report/index.html to your source code report files.

From my Gruntfile: grunt.registerTask('coverage', ['jshint', 'clean:coverage', 'copy', 'instrument', 'forever:test:restart', 'protractor_coverage', 'copy', 'makeReport']);

The 'copy' task grabs non-instrumented files from my build output.

laurenceamckay avatar Sep 08 '16 23:09 laurenceamckay

please close this PR.

lfkimura avatar May 17 '17 21:05 lfkimura