Comments (1)
Hi,
Apologies - it is a little confusing.
The short answer is that anything longer than a project summary report can potentially cause munit's server to hang. This is due to a bug in the nekotools server with sending multiple POST requests with large amounts of data (it never clears the buffer between requests). I believe the bug has been fixed on neko svn, but there hasn't been a proper update to Neko in a long time (although Nicolas mentioned a month or so ago that a public release is on the cards soonish)
We originally wrote the EMMAPrintClient (and Munit's JUnitReportClient) with the intension that these could be saved out by munit's CLI. While they worked in simple test apps, in real world apps (with plenty of tests and coverage results) they consistently hung the CLI.
We switched to the simple summary report as a fallback for CI integration that was small enough to never hit the POST limit, but still enable basic validation of tests/coverage.
Munit2 (which we work on and off where we can) has switched to Node rather than NekoTools server (and websockets over POST) to work around this issue, however we dont have an estimate release window just yet.
I have also began work on a dedicated CLI for MCover, that will convert a raw serialised coverage result data set into different report formats. In the longer term this will be a more efficient approach, as MUnit2 will only need to handle a single coverage format, and users can convert this into xml/html reports on completion via haxelib run mcover report ...
In the meantime you have a few options.
- For system targets (c++, neko, etc) you can write a custom report out to a file manually in the TestMain once the tests have completed. Unfortunately for JS and AS3 targets this wont work.
- Generate the full report once the test runner has completed and then send it to a custom service (e.g. a simple node server) to save the report out to the file system.
If you end up writing a CoberturaPrintClient we'd love to include it in a release.
One final option may be to write a cobertura friendly summary report format for the MUnit CLI (if Cobertura supports a summary formats).
You can use the TeamCity variant as an example (haxelib run munit report teamcity
). We use this to integrate summary results/coverage with our CI environment. Source is here: http://github.com/massiveinteractive/MassiveUnit/tree/master/tool/src/massive/munit/report.
Hope that helps a little...
Dom
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.