Comments (6)
@jpie can you provide an example of what you would like to see?
from mocha-junit-reporter.
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.
I think this would have to be a new enhancement. The testCaseSwitchClassnameWithName
feature works as intended.
from mocha-junit-reporter.
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.
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.
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)
- When i use mocha report for cypress ,generated report is werid and can not upload for testrail HOT 1
- "TypeError: testcase.testcase[0]._attr.time.toFixed is not a function" fails CI pipelines randomly HOT 1
- Generate XML with skipped testcases HOT 3
- Publish 2.1.0 to NPM HOT 3
- Cannot read properties of undefined (reading 'testsuite') HOT 13
- "useFullSuiteTitle" is setted to true by default HOT 1
- failure message is not properly escaped HOT 3
- Can't use home directory in path of mochaFile
- Properties for test cases HOT 10
- Outdated Documentation
- Error when using --forbid-only in mocha
- Missing attributes for JUnit XML HOT 1
- Possible to group `<testsuite>` by filename?
- How to edit | customize test suite name in the result.xml file for mocha
- runner.on is not a function
- Gitlab not reporting stuff in the proper columns
- Uncaught TypeError: Cannot read properties of undefined (reading 'length') HOT 1
- CVE sonatype-2023-4801 - Inflight package
- Reporter option maxDiffSize is ignored
- Replace `mkdirp` with `fs.mkdirSync(path, { recursive: true })`
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 mocha-junit-reporter.