Comments (9)
https://github.com/futuresimple/jessie/blob/master/lib/jessie/formatters/xunit.js
a example
from mocha.
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.
Xavier try using something like Mocha-PhantomJS:
https://github.com/metaskills/mocha-phantomjs
from mocha.
thanks for the pointer! i finally ended with https://github.com/peerigon/xunit-file
from mocha.
you can always do redirect -r xunit > result.xml
from mocha.
yes you can, but it also redirects any logging message and it's messing up the file format.
from mocha.
Another possibility to develop a composite reporter in which the console will have one format and the file will have another.
from mocha.
isn't this already supported. as per #179?
from mocha.
yep, thanks
from mocha.
Related Issues (20)
- 📝 Docs: Remove Matomo from the website HOT 1
- 🐛 Bug: Failed to run tests with a large tests count HOT 1
- 🛠 Repo: Tests broken on main for xunit after conflicting merge
- 🛠 Repo: Remove `husky` for now HOT 3
- 🛠 Repo: Replace `nps` with ordinary npm scripts
- 🐛 Bug: Audit and fix accessibility for browser reporter
- 🚀 Feature: Unify `--ignore` and `--watch-ignore` and make the patterns recursive HOT 1
- 🐛 Bug: Unit test cases taking too much time to execute HOT 1
- 🐛 Bug: <short description of the bug>
- 🐛 Bug: `skip` shows "pending" instead of "skipped" HOT 2
- 🐛 Bug: Test titles not shown for ES dynamic imports HOT 1
- 🐛 Bug: mocha fails silently on invalid `package.json` section HOT 12
- Bump chokidar HOT 3
- 🐛 Bug: [email protected] has a performance bug HOT 1
- 🐛 Bug: Error Importing TypeScript Class: Only .js Extension Supported, Not .ts HOT 1
- 🐛 Bug: when using exports interface for tests, there's no file on suites objects HOT 8
- 🚀 Feature: Update glob from 8.1.0 which is no longer supported HOT 6
- 🐛 Bug: Watch + mochaHooks inconsistent state on re-runs HOT 2
- 🐛 Bug: Hit an error with CJS named exports HOT 8
- Transitive dependency on deprecated inflight package HOT 2
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.