michaelleeallen / jest-junit-reporter Goto Github PK
View Code? Open in Web Editor NEWA JUnit test reporter for Jest.
License: MIT License
A JUnit test reporter for Jest.
License: MIT License
Hi,
I ran few test suites, most failed to run due to compilation error (test didnt actually ran). One suite ran successfully with 2 tests that passed.
The output .xml file reports 2 tests where both succeeded. Doesn't it make sense to report all the failing tests in the tests suites as failures (Even though they didn't run, they failed to compile)?
Yoni
Using jest config noStackTrace: true, stack trace is removed from console when test fails but the stack trace still continues to be added to the reporter xml file. Is there a way to stop stack trace (like below) from being added to the xml file in failure message string.
<?xml version="1.0" encoding="UTF-8"?> <testsuites> <testsuite id="0" name="/test/functional/test.js" errors="0" package="/test/functional/test.js" hostname="localhost" tests="1" failures="1" time="61.522" timestamp="2017-12-22T18:36:41"> <properties> </properties> <testcase classname="Test Call" name="Call Test" time="0"> <failure message="Error: Actual: 0 is not equal to Expected: 1, Test Failed. at Object.<anonymous>.exports.toBeEqual (/src/helper/assert.js:26:20) at _callee5$ (/test/functional/test.js:74:32) at tryCatch (/node_modules/regenerator-runtime/runtime.js:65:40) at Generator.invoke [as _invoke] (/node_modules/regenerator-runtime/runtime.js:299:22) at Generator.prototype.(anonymous function) [as next] (/node_modules/regenerator-runtime/runtime.js:117:21) at step (/test/functional/test.js:2:374) at /test/functional/test.js:2:534 at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7)" type="AssertionError"> </failure> </testcase> <system-out/> <system-err/> </testsuite> </testsuites>
Hello!
Our projects are quite similar so would you be interested in merging them?
How and where would one set the environment variables to customize the path and filename?
This would be a great addition in the readme
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.