0.5.2 • Published 3 years ago

cypress-dependencies-runner v0.5.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

cypress-dependency-runner

This package is helping to manage dependencies between cypress tests.

Structure

  • tests - example of cypress project with this library
  • testserver - 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 configuration
  • graph.js - class Graph; creation structure
  • drawableGraph.js - class DrawableGraph; svg creation
  • resultsParser.js - class ResultsParser; parsing cypress report
  • utils/readFile.js - util to read file in specific way

How to use it?

  1. npm install --save-dev cypress-dependency-runner
  2. Go to your file (or create it) where you start test programmatically and inject getFullOrder method.

    e.g. TBD

  3. 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
0.5.2

3 years ago

0.6.0-alpha1

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.1.0

3 years ago