-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Regression: nyc 15 creates output folder in wrong location and doesn't create HTML report at all #1234
Comments
One thing I'm noticing is that you are using the If you rename the |
Hey Corey! Thanks for getting back to me so quickly. So, unfortunately no, changing
That said, I'm gonna create a minimal repo for you ASAP. Also, this regression aside, I love Istanbul/NYC so keep it up! :) Thanks again! |
nyc 15 contains breaking changes, once we can see a reproduction we can determine if the breakage is intentional or not. If the breaking change is intentional this will help determine if the changelog needs to be clearer about the change. |
Done: https://github.com/dcdietrich/NycBug1234Repo/ |
This repo seems to work for me:
I'm running in Linux (Fedora), maybe this is a platform specific issue? |
Possibly. I'm running this on Windows 10 (1803). I don't have a Linux box to try this on right now but I'll check as soon as I get a chance. However, the coverage report on the console is not supposed to be there when the HTML reporter is configured (at least that was the behavior of versions 12 and 14). |
Ah, your configuration isn't even loading in nyc 15. Moving the nyc configuration to |
I don't know if this helps, but I just tried this Ubuntu 18.03 and there seems to be a platform-specific aspect to it. As I mentioned, when I run this on Windows I get no coverage at all. When I run this on Ubuntu I do see the report you were seeing on Fedora. But from your last comment it sounds more like the root cause is not platform-specific. |
@dcdietrich Please do another test on Windows for me. Add Once you do this I think your test should work (it did locally for me but again that's on Linux). The problem is that |
@coreyfarrell, rather mixed results, I'm afraid. So the good news is that with the change the configuration gets picked up correctly again and the console output is what I expect:
However, the bad news is that we definitely have a platform-specific regression on Windows because I'm getting an empty coverage report. |
I've found the issue, we need to eagerly resolve the path to |
@dcdietrich Could you please run Note that the change in |
Sorry, still broken:
|
Can you commit / push your updated package.json / package-lock.json to github? I have a MiniPC that runs Windows I'm going to give this a try but it's very cumbersome for me to work from Windows so I'd appreciate your help. Edit: please comment here when you've pushed to your repo otherwise I don't see it. |
Done. Happy to help in any way I can so please let me know if there's anything else I can do to make this easier for you to debug. |
I've published |
Repo Steps
Execute
npm test
with the following configuration using nyc 15.0 (beta):Expected Behavior
Creation of a folder
TypeScriptUnitTest\.nyc_output\
with the raw nyc output and a folderTypeScriptUnitTest\coverage\
with the code coverage report.Observed Behavior
The output folder is in the wrong location (
Application\.nyc_output\
) and thecoverage\
folder isn't created at all (so there is no report).Notes
This is a regression since this setup has worked for over a year without any issues using nyc versions 12.0.2 and 14.1.1.
The text was updated successfully, but these errors were encountered: