Doesn't work with non-root project folder on Windows
See original GitHub issueFirst of all, really awesome initiative with this plugin.
My cypress test suite is inside a test
folder.
With this plugin, my specs fail with the following message:
CypressError: cy.task('coverageReport') failed with the following error:
> Error: Command failed: nyc report --reporter=html
at makeError (/Users/xxx/projectname/node_modules/execa/index.js:174:9)
at Promise.all.then.arr (/Users/xxx/projectname/node_modules/execa/index.js:278:16)
at <anonymous>
Moving the cypress
folder and cypress.json
to the root of the project, outside of /test
, makes the whole thing work again.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:18 (6 by maintainers)
Top Results From Across the Web
Can't create folder or files in root directory of USB drive.
Can't create folder or files in root directory of USB drive. This seems to be a permissions problem, but I can't find what's...
Read more >How to fix a eclipse project that was shared without the root ...
You need to open Windows Explorer to manually create the new folder under the component root folder of the sandbox. Then switch back...
Read more >root folder equivalent in windows
In Windows it's relative to what drive your current working directory is at the time. If your current directory is in the C...
Read more >Multi-root Workspaces in Visual Studio Code
You can open and work on multiple project folders in Visual Studio Code with multi-root workspaces.
Read more >What Is a Root Folder or Root Directory?
ROOT is also an acronym for ROOT's Object Oriented Technologies, but it has nothing to do with root folders. Examples of Root Folders....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve the same issue, but I can’t fix it like @ericorruption suggested, because my client (
gui
) and server (backend
) are seperate repositories and there is currently no way into merging them.The error I get in the
after all
section:My guess is that
nyc
gets executed in the folder wherecypress.json
resides and therfore hasn’t direct access to the source files. Running thenyc report
command in a shell doesn’t fail, but ignores the missing source files, so I don’t know if that is really the problem…A little off-topic: The last line in the error message is a little missleading. It looks like it is a generic error for all hooks (
before
,beforeEach
,afterEach
,after
), but it doesn’t make much sense that after theafter
hook the remaining tests are skipped, because there never won’t be any tests remaining.Hmm @jrnail23 this seems like a separate issue from the original (
nyc
location). Please open a new issue with folder structure described in enough detail so I can understand it - or better a public repo available that shows the problem