RSpec logfmt Formatter

CircleCI

RSpec 3 results in the logfmt format that you can push to you observability tool such as Honeycomb

Usage

Install the gem:

WIP ```sh gem install rspec_logfmt_formatter ```

Use it:

rspec --format RspecLogfmtFormatter::Formatter --out rspec.txt

You'll get a file rspec.txt with your results in it.

You can use it in combination with other formatters, too:

rspec --format progress --format RspecLogfmtFormatter::Formatter --out rspec.txt

Using in your project with Bundler

Add it to your Gemfile if you're using Bundler. Put it in the same groups as rspec.

group :test do
  gem "rspec"
  gem "rspec_logfmt_formatter"
end

Put the same arguments as the commands above in your .rspec:

--format RspecLogfmtFormatter::Formatter
--out rspec.txt

Parallel tests

For use with parallel_tests, add $TEST_ENV_NUMBER in the output file option (in .rspec or .rspec_parallel) to avoid concurrent process write conflicts.

--format RspecLogfmtFormatter::Formatter
--out tmp/rspec<%= ENV["TEST_ENV_NUMBER"] %>.txt

How to push to Honeycomb

TODO

Development

TODO

Releasing

TODO

License

The MIT License, see LICENSE.