You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

backtraces.feature 929 B

2 years ago
123456789101112131415161718192021222324252627282930313233343536
  1. Feature: Backtraces
  2. In order to discover errors quickly
  3. As a cuker
  4. I want to see backtraces for failures
  5. Background:
  6. Given a file named "features/failing_hard.feature" with:
  7. """
  8. Feature: Sample
  9. Scenario: Example
  10. Given failing
  11. """
  12. @jruby
  13. Scenario: Backtraces enabled
  14. Given a file named "features/step_definitions/steps.rb" with:
  15. """
  16. require 'java'
  17. java_import 'java.util.Collections'
  18. Given /^failing$/ do
  19. Collections.empty_list.add 1
  20. end
  21. """
  22. When I run `cucumber features/failing_hard.feature`
  23. Then it should fail with:
  24. """
  25. Feature: Sample
  26. Scenario: Example # features/failing_hard.feature:2
  27. Given failing # features/step_definitions/steps.rb:4
  28. (Java::JavaLang::UnsupportedOperationException)
  29. java.util.AbstractList.add(java/util/AbstractList.java:
  30. """

No Description

Contributors (1)