Sha256: 92ac7df40a390291910df04fefddd1ddfcb3f082ee6ec1b5eb859d72af2ae82a

Contents?: true

Size: 758 Bytes

Versions: 3

Compression:

Stored size: 758 Bytes

Contents

Feature: Failure exit code

  The exit code should always be non-zero (1) when there are failing tests

  Background:
    Given a fixture application
    And a file named "spec/ui/ui_component_spec.rb" with:
      """ruby
      require 'simulacrum_helper'

      describe 'UI Component' do
        component :ui_component do |options|
          options.url = '/ui_component.html'
        end
        it { should look_the_same }
      end
      """

  Scenario: There are failing tests
    Given a reference image for "ui_component" with content: "diff.png"
    When I run `simulacrum`
    Then the exit status should be 1
    And the output should contain "Failure/Error: it { should look_the_same }"
    And the output should contain "1 example, 1 failure"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simulacrum-0.3.2 features/exit_codes/failing.feature
simulacrum-0.3.1 features/exit_codes/failing.feature
simulacrum-0.3.0 features/exit_codes/failing.feature