meteor-coverage icon indicating copy to clipboard operation
meteor-coverage copied to clipboard

Code coverage not working for full app test in meteor 1.8

Open mohitsati14 opened this issue 6 years ago • 2 comments

Expected Behavior

On opening localhost:3000/coverage, it should show coverage

Current Behavior

On localhost:3000/coverage, it says no coverage has been reported but all tests have run successfully.

Also for unit tests, coverage has been added but there is no css file which makes it very hard to figure out the lines covered

Your Environment

  • Version used: latest
  • Environment name and version (e.g. Node 0.10.47): node 8
  • Operating System and version: mac os 12

mohitsati14 avatar Mar 27 '19 08:03 mohitsati14

I think the above behavior was because of missing babel env config. But even if I add that unit test works fine but in full app mode, the test command is getting stuck at building for web.browser . When enabled verbose logging, it is stuck after DONE 2 processing files with less (for target web.browser) took 38

mohitsati14 avatar Mar 27 '19 09:03 mohitsati14

Hello. If you correctly setup the environment, the instrumentation of your code is done by babel and I don't think it can freeze like that during the process. Try to setup a small reproducible environment to setup coverage and you will discover by yourself what's wrong with your app. Don't forget there is exemple available to setup coverage.

Good luck, feel free to continue to ask questions if you have more stuff

serut avatar Mar 27 '19 18:03 serut