Going crazy with --watch
See original GitHub issueIf i add --watch
flag, the reporter is going crazy.
It looks like he is doing all tests multiple times and adds and removes the css several times.
Sometimes they are missing at the end of the crazy-going-session.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Apple Watch going crazy - Apple Community
Hi my Apple Watch se has a mind of it own, I've tried to hard reset it, still doing the same problem, it...
Read more >Apple Watch going crazy : r/AppleWatch - Reddit
If some water or debris is interfering with the sensor reading, it will interpret it as the crown turning. If it's water maybe...
Read more >Samsung Galaxy Watch 4 going crazy - YouTube
Samsung Galaxy Watch 4 going crazy during charging.It just started to put in numbers in the emergency call window by it self and...
Read more >Watch GO! Crazy Gangster | Full movie | Disney+
Fong is known as an eternal benchwarmer on a professional basketball team. He is hired as a coach by chance, but soon finds...
Read more >How to watch and stream Am I Going Crazy?? - 2021 on Roku
Watch inHD. Free. Am I Going Crazy??, an educational movie is available to stream now. Watch it on Xpnsion Network on your Roku...
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
This is fixed with mochawesome-report-generator@1.0.8. Assets only get copied once and no longer trigger infinite test re-runs.
Did some research on this. The issue comes from how mocha determines what files to watch. Mocha will watch all
.js
files insidecwd
. If it’s the first time running tests with mochawesome you’re fine but every time after mocha will find theapp.js
file created by mochawesome and add it to the list of watched files. Since that file gets created each time the reporter runs, mocha picks it up as changed and runs the test again putting the whole process into an endless loop. Unfortunately mocha does not currently offer options to watch or ignore certain files.As a workaround, you can run mochawesome with the
inlineAssets
option set totrue
. This prevents theapp.js
file from being created since all assets get inlined into the report HTML file.I am going to look into changing mochawesome so it won’t recreate the assets folder if it already exists.