Sha256: 3994070468d53f4d7fcc49887350c18d4eaf520242085b6e8dcecf3a68babb49
Contents?: true
Size: 833 Bytes
Versions: 12
Compression:
Stored size: 833 Bytes
Contents
Feature: `--dry-run` option Use the `--dry-run` option to have RSpec print your suite's formatter output without running any examples or hooks. Scenario: Using `--dry-run` Given a file named "spec/dry_run_spec.rb" with: """ruby RSpec.configure do |c| c.before(:suite) { puts "before suite" } c.after(:suite) { puts "after suite" } end RSpec.describe "dry run" do before(:context) { fail } before(:example) { fail } it "fails in example" do fail end after(:example) { fail } after(:context) { fail } end """ When I run `rspec --dry-run` Then the output should contain "1 example, 0 failures" And the output should not contain "before suite" And the output should not contain "after suite"
Version data entries
12 entries across 12 versions & 1 rubygems