Coder Social home page Coder Social logo

Comments (8)

Hargne avatar Hargne commented on May 23, 2024

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.

avne31 avatar avne31 commented on May 23, 2024

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.

avne31 avatar avne31 commented on May 23, 2024

hi,

is there any way you can suggest because I'm stuck at that point from 3 days

thanks

from jest-html-reporter.

Hargne avatar Hargne commented on May 23, 2024

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.

Hargne avatar Hargne commented on May 23, 2024

Please open this issue if you still feel that this is a necessary feature for this plugin.

from jest-html-reporter.

avne31 avatar avne31 commented on May 23, 2024

I want to append all test result because of 2 things:

  1. 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.

  2. above one for 1 iteration, I want to run multiple iterations to test the script regressively.

from jest-html-reporter.

avne31 avatar avne31 commented on May 23, 2024

and its request please reopen this issue because it may be need of others too.

from jest-html-reporter.

Hargne avatar Hargne commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.