0.5.2 • Published 3 years ago
cypress-dependencies-runner v0.5.2
cypress-dependency-runner
This package is helping to manage dependencies between cypress tests.
Structure
tests
- example of cypress project with this librarytestserver
- test server to handle order tests
src
index.js
- This file you should import and call in your test. Should be configurable.configReader.js
- class ConfigReader; reading configurationgraph.js
- class Graph; creation structuredrawableGraph.js
- class DrawableGraph; svg creationresultsParser.js
- class ResultsParser; parsing cypress reportutils/readFile.js
- util to read file in specific way
How to use it?
npm install --save-dev cypress-dependency-runner
Go to your file (or create it) where you start test programmatically and inject
getFullOrder
method.e.g.
TBD
Define in your spec files special comments which tell about dependecies.
e.g.
/***CypressRunner { "id": "1.1", "require": ["1.2"] } ***/
Changelog
0.5.2
- Add
silent
option
0.5.1
- Fixed another problem with spaces in id's
0.5.0
- Now you will get custom error when problem with parsing tags
- Fixed problem with spaces in id's
- Now you can set custom font in output image (
process.env.CDR_SVG_FONTNAME
)
0.4.0
- Change default tags
- Now you can pass
env
when you are starting tests
0.3.1
- Add simple readFile test
0.3.0
- First public version
0.1.0
- First published version