Open feugy opened 7 years ago
Hello @jwalton.
I'm sorry, but I couldn't find any way to increase coverage on my code. Adding test:electron
to CI to cover the new report in src/register.coffee
didn't helped.
Hello here!
It's been a while since I had to use coffee,-coverage and electron-mocha. Yesterday I find out a regression introduced by the newest version of the coffeescript compiler.
Between coffeescript 2.0.2 and 2.3.1 (the latest at the moment), an internal changes was introduce, and AST nodes don't necessary have locationData
attached.
I've added a test to replicate this situation, it occurs when using blocks such as single-line for loops.
Electron-mocha is a special flavour of mocha that runs test within Electron context.
It works fine with nyc, as long as instrumentation is done by using mocha hooks, like coffee-coverage does.
But I found out it requires some small adaptation to make it works.