`all:true` not working with Next application
See original GitHub issueVersions
- What is this plugin’s version? 3.9.12
- What is Cypress version? 8.2.0
- What is your operating system? Mac OS 12.1
- What is the shell? ZSH
- What is the Node version? 14.18.2
- What is the NPM version? 8.3.2
- How do you instrument your application? Cypress does not instrument web application code, so you need to do it yourself. Like mentioned in the installation guide here
- When running tests, if you open the web application in regular browser, and open DevTools, do you see
window.__coverage__
object? Can you paste a screenshot?
I don’t think I do but I get coverage in the end.
- Is there
.nyc_output
folder? Is there.nyc_output/out.json
file. Is it empty? Can you paste at least part of it so we can see the keys and file paths?
This is generated, but no empty objects for empty files.
- Do you have any custom NYC settings in
package.json
(nyc
object) or in other NYC config files
"nyc": {
"all": true
}
- Do you run Cypress tests in a Docker container? No
Describe the bug
I use the option all:true
but I don’t see all files. For example I have some files in pages/..
which are not displayed at all. It seems that just loaded files are used.
The NYC options from the package.json are used because I fiddled around with the include
parameter and it is filtering, so that seems to work. I don’t see any difference in the output if I use true
or false
for the all
option.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:10
Top Results From Across the Web
Alltrue • All good things.
Quarterly boxes, seasonal markets, inspiration for intentional living, and a community that cares. Start your membership today.
Read more >Subscription SHADY! AllTrue/Causebox Deleting Comments ...
Welcome back to What's Up in Makeup! Thank you to Naked & Thriving for Sponsoring this video! Use my link https://bit.ly/JenLuvNTApr22 and ...
Read more >HONEST ALLTRUE REVIEW | WHAT HAPPENED TO ...
(This video is not sponsored in any way) 0:00 Alltrue review intro ... get $15 credit in the app too when you receive...
Read more >Not Getting All Your Subscription Boxes? Here Are All the ...
There are subscription boxes for premade dinners, beauty products and even shaving supplies. Hillary Jones has subscribed to Alltrue for years.
Read more >Solved: How to return more than one value to list all true...
Solved: Hey guys, How are you doing? I hope you're all fine. I think for you guys it's just simple to solve but...
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
You may run into problems merging the Jest and Cypress coverage. It worked in simple tests but I have run into more issues.
Cypress coverage seems to have anonymous function names, and Jest coverage has named function names.
I am not sure it is possible just to drop the Istanbul Babel function onto the end of the Babel config and have it automatically work. I am still researching the exact cause of the issues merging.
For my purposes I’m able to merge coverage from
jest --coverage --coverageReporters json
with the Cypress coverage output using istanbul-lib-coverage so I’m abandoning this PR. Sorry.