flow-bamboo-reporter
v0.3.0
Published
Converts JSON files generated by 'flow check --json' to be parsed by Bamboo's Mocha parser
Downloads
21
Maintainers
Readme
flow-bamboo-reporter
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