Comments (8)
Hi,
Appending to an existing file instead of writing out the latest test result would require a fundamental change to the entire plugin and perhaps even something I would suggest avoid doing in the first place because of the ever growing file size each time you run a test suite.
Out of curiosity though: what will the benefits be of storing all previous test results?
from jest-html-reporter.
I'm running my script through the batch file and the same time I will pass variables because of my script demands.so jest invokes at all test and runs the file. that's why I want to append the test cases, it's not my curiosity it's my need here.
from jest-html-reporter.
hi,
is there any way you can suggest because I'm stuck at that point from 3 days
thanks
from jest-html-reporter.
Hi, and sorry for the late reply.
I'm still unsure why you need to test results to be apended on each run. What you could do is to automatically cange the output directory/name on each run, which essentially will give you the same result.
from jest-html-reporter.
Please open this issue if you still feel that this is a necessary feature for this plugin.
from jest-html-reporter.
I want to append all test result because of 2 things:
-
because some script calling multiple times through 1 cycle like(login account with primary user, login account with the secondary user and last but not the least login account as account owner ) here we can see the same script calling multiple times.
-
above one for 1 iteration, I want to run multiple iterations to test the script regressively.
from jest-html-reporter.
and its request please reopen this issue because it may be need of others too.
from jest-html-reporter.
Please correct me if I didn't catch what you were going for - but from what I understand, you want to do the two following things:
- Test the same method multiple times with different parameters.
- Perform some kind of Regression Testing to ensure that changes in your code doesn't change the intended behaviour.
Test the same method multiple times with different parameters.
This is native to Jest (and similar testing frameworks). You can (and should) test a method in every possible way using Jest. You can find an example of this in this repository even - in this file. Here we test the renderHtmlReport
method twice with different parameters. There are multiple tutorials on this to be found.
Perform some kind of Regression Testing
Regression Testing is beyond the scope of this plugin (whose purpose is not to test, but to report the outcome of Jest's test results in a report). However if you need to perform Regression Testing, I would advise to look at tools specifically built for that case. You can find a descriptive list over good tools here.
Lastly (as I've said previously), if this isn't what you're after - you could programmatically change the output directory/name of the test report on each run, which would essentially will give you the same result as to store everything in the same file.
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.