Sha256: 8706b17e47ad0a93ebc9510ba0f968985c9a2a5df6b70bfc8b0f58fae96cd3e0

Contents?: true

Size: 984 Bytes

Versions: 16

Compression:

Stored size: 984 Bytes

Contents

Feature: Backtraces
  In order to discover errors quickly
  As a cuker
  I want to see backtraces for failures

  Background:
    Given a file named "features/failing_hard.feature" with:
      """
      Feature: Sample
        Scenario: Example
          Given failing
      """

  @jruby
  Scenario: Backtraces enabled
    Given a file named "features/step_definitions/steps.rb" with:
      """
      require 'java'
      java_import 'java.util.Collections'

      Given /^failing$/ do
        Collections.empty_list.add 1
      end
      """
    When I run `cucumber features/failing_hard.feature`
    Then it should fail with:
      """
      Feature: Sample

        Scenario: Example # features/failing_hard.feature:2
          Given failing   # features/step_definitions/steps.rb:4
             (Java::JavaLang::UnsupportedOperationException)
            java.util.AbstractList.add(AbstractList.java:148)
            java.util.AbstractList.add(AbstractList.java:108)
      """

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cucumber-1.3.15 features/backtraces.feature
cucumber-1.3.14 features/backtraces.feature
cucumber-1.3.13 features/backtraces.feature
cucumber-1.3.12 features/backtraces.feature
cucumber-1.3.11 features/backtraces.feature
cucumber-1.3.10 features/backtraces.feature
cucumber-1.3.9 features/backtraces.feature
cucumber-1.3.8 features/backtraces.feature
cucumber-1.3.7 features/backtraces.feature
cucumber-1.3.6 features/backtraces.feature
cucumber-1.3.5 features/backtraces.feature
cucumber-1.3.4 features/backtraces.feature
cucumber-1.3.3 features/backtraces.feature
cucumber-1.3.2 features/backtraces.feature
cucumber-1.3.1 features/backtraces.feature
cucumber-1.3.0 features/backtraces.feature