1.1.1 • Published 1 month ago

@ugzuzg/cucumber-github-actions-formatter v1.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

Cucumber.js GitHub Actions Formatter

This formatter logs errors in a way that is recognised by GitHub Actions as annotations.

Install

The build targets Node 16.

$ npm i @ugzuzg/cucumber-github-actions-formatter

Usage

$ cucumber-js -f @ugzuzg/cucumber-github-actions-formatter

Or use Profiles

The formatter produces very little output, though. You will most likely want to use another formatter together with this one. There is a limitation in cucumber-js that only one formatter can output to stdout. Use the following trick to work around that limitation by directing this formatter to a file descriptor of stdout:

$ cucumber-js -f @cucumber/pretty-formatter -f @ugzuzg/cucumber-github-actions-formatter:/proc/self/fd/1

Example

image