Parses foodcritic output (with context) into a JUnit XML file.
$ bundle exec foodcritic -C . | bundle exec foodcritic-junit
=> Wrote test/reports/report.xml
In your Gemfile: gem 'foodcritic-junit'
or just gem install foodcritic-junit
Environment Variables
COOKBOOK_NAME="my_cookbook"
FOODCRITIC_JUNIT_OUTPUT_DIR="/tmp/"
FOODCRITIC_JUNIT_OUTPUT_FILE="my_junit_report.xml"
Pull requests / bug reports welcome :)
This gem is released and available under the MIT license.
Inspired by foodcritic-junit-tee