Comments (2)
I've seen this happen occasionally before - it's actually due to the munit 'run' command shutting down the temporary nekotools server before the images are loaded by the browser.
I also replicated it (occassionally) by adding a test that just threw an exception to example/coverage/03_MassiveUnitCoverage/text/ExampleTest.hx
. Couldn't replicate it consistently though.
This is only an issue for AS3 because the swf runner relies on ExternalInterface to update the javascript result client in the browser, and synchronous calls via ExternalInteface are inconsistently slow.
On some of our larger projects the AS3 target can take about 3-4 times longer than the JavaScript to finish running because of this bottleneck. The more data being printed to the browser client (lots of failures, exceptions and coverage info), the bigger this lag can be.
For some reason this occasionally results in a race conditions issue and by the time the browser DOM updates and goes to load the icons the server has already shut down and the urls dont exist anymore.
If you open up the chrome/dev tools in the browser you will see the missing image urls.
The good news is that the data is all there, just the icons are missing - so you should be able to click to open the results on a test.
The other good news is that the next major release of munit removes the need for ExternalInterface entirely.
In the meantime I'll raise the issue in munit with a simple workaround that can be applied to the current version branch - moving all the icons into a single spritesheet that is loaded up front so they are already cached by the browser.
from mcover.
Moved to munit massive-oss/MassiveUnit#32
from mcover.
Related Issues (20)
- Support ignoring coverage for concrete expressions. HOT 3
- How to ignore compilation of some files inside a classpath. HOT 2
- MCover fails if package has a space at the end before ';' HOT 1
- Single-letter classes are not supported HOT 1
- Module sub-types are not supported. HOT 1
- Always reporting 0% on cpp target HOT 3
- Running tests stuck with -coverage flag with flixel HOT 4
- Primitive not found std@mutex_create
- Ignored Mockitoo-Mocks
- Backslashes missing in paths on Windows
- Generating HTML Coverage for Neko
- Listing Method Coverage Per Method on Neko
- Deadlocks with mcover in C++ code
- 0% coverage HOT 1
- Circular dependencies with munit HOT 1
- [Feature request] Add a LCOV coverage reporter HOT 6
- Methods using return expression (i.e. without braces) are not covered HOT 1
- mcover breaks null-safety
- Coverage on abstract functions? HOT 1
- New release process? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mcover.