Sha256: 41bbf0c5d05a3fd76c45b8174811e781ffe0577bbf8f9f3c46c65fa6efe216b1
Contents?: true
Size: 917 Bytes
Versions: 5
Compression:
Stored size: 917 Bytes
Contents
Feature: custom formatters In order to format output/reporting to my particular needs As an RSpec user I want to create my own custom output formatters @wip Scenario: specdoc format Given a file named "custom_formatter.rb" with: """ require "rspec/runner/formatter/base_formatter" class CustomFormatter < Spec::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 I should see "example: my example" And the exit status should be 0
Version data entries
5 entries across 5 versions & 1 rubygems