Git Product home page Git Product logo

cypress-ctrf-json-reporter's Issues

Cannot use GenerateCtrfReport and documentation issue

Hi,

I've been going through the documentation trying to implement the reporter and I've run into the below issue.

The documentation says we must run:

npm install --save-dev cypress-ctrf-json-reporter

however, in the import/require statement, it asks us to import: 'cypress-ctrf-json-report' - note the 'er' is missing - this is when comparing to the package name.

The initial import asks us to import generateCtrfJsonReport, but this method does not exist in the code as far as I can see. Doing a brief run through, the code has the method GenerateCtrfReport exported instead of generateCtrfJsonReport

When I make the above updates with importing, I run into this error:

image

Please let me know if I am missing out on anything or using this incorrectly. It will be greatly appreciated.

feat: add start and stop to test object

add start and stop properties to test object.

start - Number - The start time of the test as a Unix epoch
stop - Number - The end time of the test as a Unix epoch

feat: add message and trace to test object

When status is failed add message and trace to test object.

message - A descriptive message or note associated with the test result
trace - The stack trace captured if the test failed

JSON result is being overwritten on each test

First of all, thank for this library, it's exactly what we were after!

However, when starting the test suite with yarn run cypress run --browser chrome --project ./test, we notice that the result file get's overwritten after each test runs; this means that the resulting json has an array tests, but it only contains the last test run.

Also, I think the README is not updated regarding the defaults; the default filename that's being generated is test/after-spec-results, and not ctrf/ctrf-report.json as per the docs.

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.