flow-bamboo-reporter

0.3.0 • Public • Published

flow-bamboo-reporter

License NPM

A report formatter for Atlassian Bamboo, that transforms the output of the Flow static code checker to Mocha compatible JSON. This allows you to run the Flow check command and display errors found nicely in Bamboo's build test pane.

Installation

Project local

npm install flow-bamboo-reporter --save-dev

Global

npm install -g flow-bamboo-reporter

Quickstart

Generate Flow report

flow check --json > flow-check.json

Convert the report

flow-bamboo-reporter -f flow-check.json

Use pipes

flow check --json | flow-bamboo-reporter

Bamboo

Add a Mocha parser task to your build job, that parses the generated mocha.json file.

Options/switches

  • To get an overview of the available command line options, you can invoke the command with -h or --help.
  • Enable verbose output with -v or --verbose. In case you need to open an issue, this shows more information.

Release notes

  • 0.3.0 Create passed result in case of no errors found

  • 0.2.0 Support piped input (stdin)

  • 0.1.0 Initial MVP release

Package Sidebar

Install

npm i flow-bamboo-reporter

Weekly Downloads

6

Version

0.3.0

License

MIT

Last publish

Collaborators

  • hyperbrain