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 collaborator
RSpec allows you to configure the terminal colors used in the text formatters.
failure_color: Color used when tests fail (default:
success_color: Color used when tests pass (default:
pending_color: Color used when tests are pending (default:
fixed_color: Color used when a pending block inside an example passes, but was expected to fail (default:
detail_color: Color used for miscellaneous test details (default:
Colors are specified as symbols. Options are
- Customizing the failure color
a file named "custom_failure_color_spec.rb" with:
RSpec.configure do |config| config.failure_color = :magenta config.color_mode = :on end RSpec.describe "failure" do it "fails and uses the custom color" do expect(2).to eq(4) end end
rspec custom_failure_color_spec.rb --format progress
- the failing example is printed in magenta
Last published about 2 years ago by Jon Rowe.
RSpec Core settings