Coder Social home page Coder Social logo

xunit reporter about mocha HOT 9 CLOSED

mochajs avatar mochajs commented on September 24, 2024
xunit reporter

from mocha.

Comments (9)

sebs avatar sebs commented on September 24, 2024

https://github.com/futuresimple/jessie/blob/master/lib/jessie/formatters/xunit.js

a example

from mocha.

xseignard avatar xseignard commented on September 24, 2024

Hello,
Is there a way to add an option, so that the xunit reporter will store the results in a file rather than displaying it in the console? I'm runit mocha through grunt (with https://github.com/yaymukund/grunt-simple-mocha) so a shell redirect is not easily feasible.

How could we pass an option to mocha to specify the output file?

Regards,

Xavier

from mocha.

machineghost avatar machineghost commented on September 24, 2024

Xavier try using something like Mocha-PhantomJS:
https://github.com/metaskills/mocha-phantomjs

from mocha.

xseignard avatar xseignard commented on September 24, 2024

thanks for the pointer! i finally ended with https://github.com/peerigon/xunit-file

from mocha.

jlin412 avatar jlin412 commented on September 24, 2024

you can always do redirect -r xunit > result.xml

from mocha.

xseignard avatar xseignard commented on September 24, 2024

yes you can, but it also redirects any logging message and it's messing up the file format.

from mocha.

mallim avatar mallim commented on September 24, 2024

Another possibility to develop a composite reporter in which the console will have one format and the file will have another.

from mocha.

xjamundx avatar xjamundx commented on September 24, 2024

isn't this already supported. as per #179?

from mocha.

travisjeffery avatar travisjeffery commented on September 24, 2024

yep, thanks

from mocha.

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.