File: formatter.json.validate_output.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 (37 lines) | stat: -rw-r--r-- 1,339 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
29
30
31
32
33
34
35
36
37
@slow
Feature: Validate JSON Formatter Output

  As a tester
  I want that the JSON output is validated against its JSON schema
  So that the JSON formatter generates valid JSON output.

  | NOTES:
  |   Some have the behave testruns may contain failures (@xfail).
  |   This should lead to more realistic JSON output, too.

  Scenario: Validate JSON output from features/ test run
    Given I use the current directory as working directory
    When I run "behave -f json -o testrun1.json features/"
    When I run "bin/jsonschema_validate.py testrun1.json"
    Then it should pass with:
        """
        validate: testrun1.json ... OK
        """

  Scenario: Validate JSON output from issue.features/ test run
    Given I use the current directory as working directory
    When I run "behave -f json -o testrun2.json issue.features/"
    When  I run "bin/jsonschema_validate.py testrun2.json"
    Then it should pass with:
        """
        validate: testrun2.json ... OK
        """

  Scenario: Validate JSON output from tools/test-features/ test run
    Given I use the current directory as working directory
    When I run "behave -f json -o testrun3.json tools/test-features/"
    When I run "bin/jsonschema_validate.py testrun3.json"
    Then it should pass with:
        """
        validate: testrun3.json ... OK
        """