@ugzuzg/cucumber-github-actions-formatter
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

92

Version

1.1.1

License

Apache-2.0

Unpacked Size

24.9 kB

Total Files

8

Last publish

Collaborators

  • ugzuzg