ctrf-io / cypress-ctrf-json-reporter Goto Github PK
View Code? Open in Web Editor NEWA Cypress JSON test results reporter that follows the CTRF schema
Home Page: https://ctrf.io
License: MIT License
A Cypress JSON test results reporter that follows the CTRF schema
Home Page: https://ctrf.io
License: MIT License
feat: add filePath to test object
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:
Please let me know if I am missing out on anything or using this incorrectly. It will be greatly appreciated.
feat: add tags to test object
feat: add flake to test object
add suite propertiy to the test object.
suite | String | The suite or group to which the test belongs.
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 browser to test object
feat: add retry 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
Add minimal as a reporter option, if set to true, only the required properties are included in the tool, summary and test object.
add suite propertiy to the test object.
suite | String | The suite or group to which the test belongs.
feat: add type to test object
feat: add rawStatus to test object
feat: add screenshot to test object
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.