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

Code coverage not working for full app test in meteor 1.8 #81

Open
mohitsati14 opened this issue Mar 27, 2019 · 2 comments
Open

Code coverage not working for full app test in meteor 1.8 #81

mohitsati14 opened this issue Mar 27, 2019 · 2 comments

Comments

@mohitsati14
Copy link

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
Copy link
Author

mohitsati14 commented Mar 27, 2019

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

@serut
Copy link
Owner

serut commented Mar 27, 2019

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

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