GithubHelp home page GithubHelp logo

Comments (1)

misprintt avatar misprintt commented on July 30, 2024

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.

  1. 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.
  2. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.