Comments (9)
kindly help me in this.i'm stuck at that point
from jest-html-reporter.
Hi,
Is it possible to provide with some more information on the issue?
- Has it worked previously (prior to any new versions)?
- Do you get any errors in your terminal specifically pointing to jest-html-reporter? If so, kindly post these here.
- If possible, please share your jesthtmlreporter.config.json (and possibly the parts of jest.config.json that relates to this plugin)
Thanks!
from jest-html-reporter.
Hi Hargne,
I have not used jest-html-reporter in past. And I have not found any error related to jest-html-reporter.
Html report is generated when all test cases are passed but did not get the report for failure case.
I am using jest to run frisby specs and jest-html-reporter for test result reporting.
I have enabled the option 'includeFailureMsg: true' in package.json for failed cases.
package.json:
"name": "test", "jest": { "verbose": true, "testMatch": ["path"], "testResultsProcessor": "./node_modules/jest-html-reporter" }, "jest-html-reporter": { "pageTitle": "Your test suite", "outputPath": "test-report.html", "includeFailureMsg": true }, "dependencies": { "jest-html-reporter": "^2.3.0" }
Thanks.
from jest-html-reporter.
Have you configured Jest to use jest-html-reporter?
Within jest.config.js:
{
"testResultsProcessor": "./node_modules/jest-html-reporter"
}
from jest-html-reporter.
I'm configuring jest in the package.json and didn't create the separate configuration file(jest.config.js).
the link I'm using:
https://www.npmjs.com/package/jest-html-reporter
from jest-html-reporter.
It's quite difficult to see the big picture of your project and why this would fail for you (I cannot reproduce the issue myself).
One thing you could attempt, is to replace the testResultsProcessor
entry to the following:
"reporters": ["default", "./node_modules/jest-html-reporter"]
And then add the "executionMode": "reporter"
within the jest-html-reporter configuration
from jest-html-reporter.
first of all, thanks for responding fast!
I did changes in the package.json file as you say but now, it only shows the result of failed cases.It doesn't show the result of passed cases.
package.json
{ "name": "test", "jest": { "verbose": true, "testMatch": [ "C:/Users/Desktop/__tests__/api/*_spec.js" ], "reporters": ["default", "./node_modules/jest-html-reporter"] }, "jest-html-reporter": { "pageTitle": "Your test suite", "outputPath": "test-report.html", "includeFailureMsg": true, "executionMode": "reporter" } }
from jest-html-reporter.
thanks for your help Hargne.
now my problem is resolved, it shows that I want.
from jest-html-reporter.
Great to hear!
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 4
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.