Comments (3)
Hey thanks for the feature request!
I agree this would be super useful.
There are some challenges we would have to overcome if we take this on.
Primarily, the challenge is that jest-junit writes a junit.xml file when the reporter is finished processing the entirety of a test report.
So, injection values like suitename or classname aren't available in that context. A report will often be a collection of suitenames and classnames, so which do we choose? How do we allow one to choose?
The thing I would ask you to consider is making heavy use of Jest Projects .
If you organize your tests utilizing projects then jest will execute each project in parallel and jest-junit will also generate a separate junit file for each project, since that is inherently how reporters work when jest is configured to use projects.
Let me know if that is a viable path forward for you, or if I should consider another way to approach this.
from jest-junit.
Hi apologies for the late response. I took a look at Jest Projects but it didn’t suit our requirements. We have since found that Azure DevOps Test Reports does actually give a tree view of classname > test title, which gives us what we need for now. It would be even better if we could output the junit files with suite/class based filenames, but for now we have a good workaround using the 2 views on DevOps and the existing templates available!
from jest-junit.
Ok sounds good!
If you give it some thought and come up with some possible solutions to this within jest-junit please reopen this issue and let's discuss.
from jest-junit.
Related Issues (20)
- Getting "extra" testcases, one "correct", another with just a Test Execution Failure HOT 3
- [Question] include console log as a system.out to the junit report. HOT 1
- Handle boolean values in addition to strings within config HOT 2
- Feature Request: Add `line` attribute to `<testcase>` element HOT 5
- Feature Request: outputNameTemplate HOT 4
- Feature request: Support for test case properties HOT 4
- Can't run jest-junit as a reporter HOT 2
- Feature Request: Mark 'todo' tests as 'skipped' HOT 3
- jest-junit incorrectly merges 2 test suites HOT 8
- Feature Request: Allow adding custom properties to `<testcase>` HOT 2
- ERR_REQUIRE_ESM HOT 2
- I have a Create React App and am trying to get unit test running in an Azure pipeline. HOT 1
- I didnt find jest-junit latest version updated with latest strip ansi 7.0.1
- Feature request: attribute retry HOT 1
- Add <rootDir> expansion to `filePathPrefix`
- Failed to write coverage reports: HOT 4
- Report is not generated when using --forceExit
- Code Coverage not included in JUnit Report HOT 2
- Line coverage in jest-junit report HOT 1
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 jest-junit.