Coder Social home page Coder Social logo

Comments (6)

michaelleeallen avatar michaelleeallen commented on September 28, 2024

@jpie can you provide an example of what you would like to see?

from mocha-junit-reporter.

jpie avatar jpie commented on September 28, 2024

Below is an example:

<testsuite name="Get all endpoints" timestamp="2018-11-20T19:59:09" tests="12"  failures="4" time="0.4750000000000001">
    <testcase name="should render the map page" time="0.07" classname="Get all endpoints">
    </testcase>
    <testcase name="should render faq page" time="0.02" classname="Get all endpoints">
    </testcase>

The only difference is the classname shares the name of the testsuite name. The reason I bring this is up is because it will help clean up test results in JUnit test reporter for jenkins. The test reporter groups the tests by classname.

from mocha-junit-reporter.

michaelleeallen avatar michaelleeallen commented on September 28, 2024

I think this would have to be a new enhancement. The testCaseSwitchClassnameWithName feature works as intended.

from mocha-junit-reporter.

jpie avatar jpie commented on September 28, 2024

Agreed, I actually did some work on how I think this could work, but didn't want to make a PR until it was acknowledged. I'll make one shortly so you can see what I had in mind.

from mocha-junit-reporter.

yonjah avatar yonjah commented on September 28, 2024

I'm wondering if maybe there should be one setting like jenkninsMode that will tweak the output so it will be displayed nicely with Jenkins. I guess it can just enable / disable a few other settings but it will probably make the intent a lot clearer and will not require setting obscure settings.

from mocha-junit-reporter.

jdc0331 avatar jdc0331 commented on September 28, 2024

Any updates on if this will be approved? I'm facing this exact problem and the PR should make it a non-issue.

from mocha-junit-reporter.

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.