Comments (1)
Now looking at this from the perspective of a maintainer: I'm of the opinion this isn't worth the maintenance cost to include in core.
Having an object that receives properties doesn't work well with how existing reporter options are set up. Reporters generally have options that can also be specified in config file and/or --reporter-option
on the CLI. This new option as implemented in #4822 would only be reasonably useful with programmatic usage, right? (did I misinterpret it?)
Another couple alternatives could be to...
- ...make a temp file on disk - which should be doable for most consumers
- I do question why that wouldn't be doable, if you're already in an environment that can run tests?
- ...run Mocha in a process with stdout parsed and captured in an object
- Admittedly, that's a little clunky and has some overhead...
IMO a better path might be to make a community fork of the reporter. If that fork ends up getting a lot of usage then we can consider that evidence to build this feature into core.
cc @mochajs/maintenance-crew for more thoughts?
from mocha.
Related Issues (20)
- 🐛 Bug: mocha does not compatible with node.js test runner HOT 1
- 📝 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
- 🐛 Bug: Unit test cases taking too much time to execute HOT 1
- 🐛 Bug: <short description of the bug>
- `skip` shows "pending" instead of "skipped"
- 🐛 Bug: Test titles not shown for ES dynamic imports
- 🐛 Bug: mocha fails silently on invalid `package.json` section
- 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 2
- 🚀 Feature: Update glob from 8.1.0 which is no longer supported HOT 1
- 🐛 Bug: Watch + mochaHooks inconsistent state on re-runs
- 🐛 Bug: Hit an error with CJS named exports
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.