Sha256: eab284dae9642970558cd8b1b28bfa5bfa0167837525cb580f21cda68f112982

Contents?: true

Size: 929 Bytes

Versions: 28

Compression:

Stored size: 929 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(java/util/AbstractList.java:
      """

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
cucumber-3.0.1 features/docs/cli/backtraces.feature
cucumber-2.99.0 features/docs/cli/backtraces.feature
cucumber-3.0.0 features/docs/cli/backtraces.feature
cucumber-3.0.0.pre.2 features/docs/cli/backtraces.feature
mobiusloop-0.1.5 features/docs/cli/backtraces.feature
cucumber-3.0.0.pre.1 features/docs/cli/backtraces.feature
cucumber-2.4.0 features/docs/cli/backtraces.feature
mobiusloop-0.1.3 features/docs/cli/backtraces.feature
mobiusloop-0.1.2 features/docs/cli/backtraces.feature
cucumber-2.3.3 features/docs/cli/backtraces.feature
cucumber-2.3.2 features/docs/cli/backtraces.feature
cucumber-2.3.1 features/docs/cli/backtraces.feature
cucumber-2.3.0 features/docs/cli/backtraces.feature
cucumber-2.2.0 features/docs/cli/backtraces.feature
cucumber-2.1.0 features/docs/cli/backtraces.feature
cucumber-2.0.2 features/docs/cli/backtraces.feature
cucumber-2.0.1 features/docs/cli/backtraces.feature
cucumber-2.0.0 features/docs/cli/backtraces.feature
cucumber-2.0.0.rc.5 features/docs/cli/backtraces.feature
cucumber-2.0.0.rc.4 features/docs/cli/backtraces.feature