cypress-dependencies-runner

0.5.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i cypress-dependencies-runner

Weekly Downloads

3

Version

0.5.2

License

ISC

Unpacked Size

132 kB

Total Files

87

Last publish

Collaborators

  • pacanowski.adam