Code Monkey home page Code Monkey logo

cuke-skywalker's Introduction

cuke-skywalker

Cucumber Skywalker

Distribute Cucumber features to workers run in parallel.

Installation

This module requires a peerDependency of the cucumber package.

npm install --save-dev cucumber cuke-skywalker

Usage

./node_modules/.bin/cuke-skywalker --tags '@this and not @that'

All arguments will be passed directly to the workers. Features will be pre-filtered to get an accurate feature count, which is used to chunk them for the "uniform" distribution method.

Distribution Methods

roundrobin

This creates a queue of features and a set of worker pipelines. These pipelines grab features one at a time until the queue is exhausted. Use this method to leverage workers more efficiently.

uniform

This chunks features into uniformly-sized groups and sends them to each worker all at once. It results in fewer output files but can leave workers with nothing to do while longer feature sets are still running elsewhere.

Options

Options are passed as environment variables.

Variable Default Description
CUCUMBER_PARALLEL_WORKERS 4 Number of worker processes to distribute features to
CUCUMBER_PARALLEL_REPORT_DIR reports Output directory for worker output JSON files
CUCUMBER_PARALLEL_DISTRIBUTION roundrobin Method for distributing features (roundrobin or uniform)
CUCUMBER_JS_PATH node_modules/.bin/cucumber-js Path to the cucumber-js bin

HTML Report

cucumber-html-reporter is available to generate a decent-looking HTML reporter across all workers.

./node_modules/.bin/cuke-skywalker-report

CUCUMBER_PARALLEL_REPORT_DIR is used for the reports directory containing the worker output, and is also where the output is written. PLATFORM and ENVIRONMENT are available for metadata values.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.