1.0.3 • Published 8 months ago

@letsflow/testing v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

letsflow

Test Suite

Test suite for LetsFlow workflows

Installation

Install Cucumber and this library using your package manager (npm, yarn, pnpm, etc).

yarn add --dev @cucumber/cucumber @letsflow/testing

Configuration

Create the cucumber configuration cucumber.yaml

workflows:
  require:
    - node_modules/@letsflow/lib/**/*.js

Add the test:workflows script in package.json

  "scripts": {
    "test:workflows": "cucumber-js --profile workflows"
  }

Features

Add features (test files) to the features folder.

Usage

Run all workflow

yarn test:workflows

Run a single feature or folder with features

yarn test:workflows features/some-test.feature

Environment variables

The test suite assumes that the scenarios are locates in a folder name scenarios in the current working directory. You can set this path with env var LETSFLOW_SCENARIO_PATH.

Documentation

Please read the full documentation at letsflow.io

1.0.3

8 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago