File: issue0032.feature

package info (click to toggle)
behave 1.2.6-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,160 kB
  • sloc: python: 19,857; makefile: 137; sh: 18
file content (28 lines) | stat: -rw-r--r-- 793 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@issue
Feature: Issue #32 "behave --junit-directory=xxx" fails if more than 1 level must be created

  Scenario:
    Given a new working directory
    And a file named "features/steps/steps.py" with:
      """
      from behave import given, when, then

      @given(u'passing')
      def step(context):
          pass
      """
    And a file named "features/issue32_1.feature" with:
      """
      Feature: One
        Scenario: One
            Given passing
      """

    When I run "behave --junit --junit-directory=report/test_results"
    Then it should pass with:
      """
      1 feature passed, 0 failed, 0 skipped
      1 scenario passed, 0 failed, 0 skipped
      1 step passed, 0 failed, 0 skipped, 0 undefined
      """
    And the directory "report/test_results" should exist