No commit activity in last 3 years
No release in over 3 years
Format rspec output for vim quickfix consumption
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 3.12.0
 Project Readme

QuickfixFormatter

Easily integrate the vim quickfix list with your failing rspec tests. Just add this gem, set it as one of your formatters (--format QuickfixFormatter)

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add quickfix_formatter

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install quickfix_formatter

Usage

Add --format QuickfixFormatter to .rspec or in the command line. There are two configurable settings, shown below with their default values.

quickfix_output_file is a string that represents the location the quickfix file is written to. quickfix_silence, when set to true, will supress the text that prints after writing the file.

# spec/spec_helper.rb

RSpec.configure do |config|
  config.quickfix_output_file = "tmp/quickfix.out"
  config.quickfix_silence     = false
end

Once rspec has written the output file, you can load it with :cfile <path to file>.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ckolkey/quickfix_formatter.

License

The gem is available as open source under the terms of the MIT License.