To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorcustom formatters
In order to format output/reporting to my particular needs
As an RSpec user
I want to create my own custom output formatters
- Scenarios
-
- specdoc format
-
- Given
-
a file named "custom_formatter.rb" with:
require "rspec/runner/formatter/base_formatter" class CustomFormatter < RSpec::Runner::Formatter::BaseFormatter def initialize(options, output) @output = output end def example_started(proxy) @output << "example: " << proxy.description end end
- And
-
a file named "simple_example_spec.rb" with:
describe "my group" do specify "my example" do end end
- When
- I run "rspec ./simple_example_spec.rb --require custom_formatter.rb --format CustomFormatter"
- Then
- the output should contain "example: my example"
- And
- the exit status should be 0
Last published over 7 years ago by .