Comments (7)
Oh, yeah. Now I get it. I just thought that there is some way to configure plugin through CLI.
Thank you for your help. 😄
from jest-html-reporter.
Hi,
Not at the moment unfortunately! And I have never seen the usage of the --testResultsProcessor
when using Jest CLI - I cannot find it on their documentation page either, which makes me think that this might not be possible at all.
from jest-html-reporter.
Jest process it's CLI options as prior config, so all keys that can be in jest.config is legal CLI options.
Also jest-junit
describes this way in it's documentation.
from jest-html-reporter.
@Hargne
There is an issue, I think.
Configuration in jest.config in that way is not allowed.
And jest displays Validation error.
Windows 10
Node 8.11.2
Npm 5.6.0
Jest 22.1.4
jest-html-reporter 2.4.0
from jest-html-reporter.
@xilaraux Regarding the issue above, the Readme is incorrect - it should be configured like this:
"reporters": [
"default",
["./node_modules/jest-html-reporter", {
"pageTitle": "Test Report"
}]
]
Thanks for pointing it out, I will update the Readme!
When it comes to the original question, I didn't know Jest CLI allowed for that. In that case (since it's configuring Jest and not this plugin), I suppose you should be able to enter the reporters
-variable as a way to configure this plugin?
from jest-html-reporter.
Can you provide an example, because I can't get how to configure plugin through reporters
?
from jest-html-reporter.
When using the jest.config-file you would configure the plugin in the object following "jest-html-reporter" as such:
"reporters": [
"default",
["./node_modules/jest-html-reporter", {
"pageTitle": "Test Suite Report",
"outputPath": "test-report.html",
"includeFailureMsg": true,
"includeConsoleLog": true,
"sort": "titleAsc"
}]
]
from jest-html-reporter.
Related Issues (20)
- TypeError: Cannot read property 'replace' of undefined HOT 1
- Html report broken when test response is html HOT 2
- Wrong coverage reported in constants HOT 1
- Assertion messages are malformed HOT 2
- Error: Could not resolve a module for a custom reporter.
- Doesn't support jest 28. HOT 4
- ENHANCEMENT: add configuration option for passing arbitrary data HOT 1
- code coverage export HOT 3
- Jest 29 HOT 1
- Extra Text in HTML Report HOT 4
- Is there a way I can Display something other than file path here? HOT 2
- TypeScript 5 support?
- appending adds several bodies and adds custom script several times
- Added into report configuration additional flag "includeStackTrace": false HOT 2
- The default colored console output is unreadable
- Make test suites collapsible (and collapse them by default) HOT 1
- Sort + append? HOT 1
- babel dependencies HOT 2
- How can we capture Request Payload & Response Json and show them to jest-html-reporter for REST API Automation framework? HOT 1
- [FIX] ENAMETOOLONG: name too long, ... errors due to too long name of generated temp directory 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-html-reporter.