Merge branch 'master' into gherkin-go-v9

Этот коммит содержится в:
Fredrik Lönnblad 2020-03-02 17:59:57 -03:00
родитель f9d367ce1b ecc0867a47
коммит d7e8f831e8
51 изменённых файлов: 1215 добавлений и 20 удалений

2
.gitignore предоставленный
Просмотреть файл

@ -3,3 +3,5 @@
**/vendor/*
Gopkg.lock
Gopkg.toml
.DS_Store

10
formatter-tests/cucumber/empty Обычный файл
Просмотреть файл

@ -0,0 +1,10 @@
[
{
"uri": "formatter-tests/features/empty.feature",
"id": "empty-feature",
"keyword": "Feature",
"name": "empty feature",
"description": "",
"line": 1
}
]

Просмотреть файл

@ -0,0 +1,10 @@
[
{
"uri": "formatter-tests/features/empty_with_description.feature",
"id": "empty-feature",
"keyword": "Feature",
"name": "empty feature",
"description": " describes\n an empty\n feature",
"line": 1
}
]

Просмотреть файл

@ -0,0 +1,20 @@
[
{
"uri": "formatter-tests/features/empty_with_single_scenario_without_steps.feature",
"id": "empty-feature",
"keyword": "Feature",
"name": "empty feature",
"description": "",
"line": 1,
"elements": [
{
"id": "empty-feature;without-steps",
"keyword": "Scenario",
"name": "without steps",
"description": "",
"line": 3,
"type": "scenario"
}
]
}
]

Просмотреть файл

@ -0,0 +1,20 @@
[
{
"uri": "formatter-tests/features/empty_with_single_scenario_without_steps_and_description.feature",
"id": "empty-feature",
"keyword": "Feature",
"name": "empty feature",
"description": " describes\n an empty\n feature",
"line": 1,
"elements": [
{
"id": "empty-feature;without-steps",
"keyword": "Scenario",
"name": "without steps",
"description": "",
"line": 6,
"type": "scenario"
}
]
}
]

345
formatter-tests/cucumber/scenario_outline Обычный файл
Просмотреть файл

@ -0,0 +1,345 @@
[
{
"uri": "formatter-tests/features/scenario_outline.feature",
"id": "outline",
"keyword": "Feature",
"name": "outline",
"description": "",
"line": 2,
"tags": [
{
"name": "@outline",
"line": 1
},
{
"name": "@tag",
"line": 1
}
],
"elements": [
{
"id": "outline;outline;tagged;2",
"keyword": "Scenario Outline",
"name": "outline",
"description": "",
"line": 13,
"type": "scenario",
"tags": [
{
"name": "@outline",
"line": 1
},
{
"name": "@tag",
"line": 1
},
{
"name": "@scenario",
"line": 4
},
{
"name": "@tagged",
"line": 10
}
],
"steps": [
{
"keyword": "Given ",
"name": "passing step",
"line": 13,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "When ",
"name": "passing step",
"line": 13,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "Then ",
"name": "odd 1 and even 2 number",
"line": 13,
"match": {
"location": "formatters_print_test.go:65"
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"id": "outline;outline;tagged;3",
"keyword": "Scenario Outline",
"name": "outline",
"description": "",
"line": 14,
"type": "scenario",
"tags": [
{
"name": "@outline",
"line": 1
},
{
"name": "@tag",
"line": 1
},
{
"name": "@scenario",
"line": 4
},
{
"name": "@tagged",
"line": 10
}
],
"steps": [
{
"keyword": "Given ",
"name": "passing step",
"line": 14,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "When ",
"name": "passing step",
"line": 14,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "Then ",
"name": "odd 2 and even 0 number",
"line": 14,
"match": {
"location": "formatters_print_test.go:65"
},
"result": {
"status": "failed",
"error_message": "2 is not odd",
"duration": 0
}
}
]
},
{
"id": "outline;outline;tagged;4",
"keyword": "Scenario Outline",
"name": "outline",
"description": "",
"line": 15,
"type": "scenario",
"tags": [
{
"name": "@outline",
"line": 1
},
{
"name": "@tag",
"line": 1
},
{
"name": "@scenario",
"line": 4
},
{
"name": "@tagged",
"line": 10
}
],
"steps": [
{
"keyword": "Given ",
"name": "passing step",
"line": 15,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "When ",
"name": "passing step",
"line": 15,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "Then ",
"name": "odd 3 and even 11 number",
"line": 15,
"match": {
"location": "formatters_print_test.go:65"
},
"result": {
"status": "failed",
"error_message": "11 is not even",
"duration": 0
}
}
]
},
{
"id": "outline;outline;;2",
"keyword": "Scenario Outline",
"name": "outline",
"description": "",
"line": 20,
"type": "scenario",
"tags": [
{
"name": "@outline",
"line": 1
},
{
"name": "@tag",
"line": 1
},
{
"name": "@scenario",
"line": 4
},
{
"name": "@tag2",
"line": 17
}
],
"steps": [
{
"keyword": "Given ",
"name": "passing step",
"line": 20,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "When ",
"name": "passing step",
"line": 20,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "Then ",
"name": "odd 1 and even 14 number",
"line": 20,
"match": {
"location": "formatters_print_test.go:65"
},
"result": {
"status": "passed",
"duration": 0
}
}
]
},
{
"id": "outline;outline;;3",
"keyword": "Scenario Outline",
"name": "outline",
"description": "",
"line": 21,
"type": "scenario",
"tags": [
{
"name": "@outline",
"line": 1
},
{
"name": "@tag",
"line": 1
},
{
"name": "@scenario",
"line": 4
},
{
"name": "@tag2",
"line": 17
}
],
"steps": [
{
"keyword": "Given ",
"name": "passing step",
"line": 21,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "When ",
"name": "passing step",
"line": 21,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "Then ",
"name": "odd 3 and even 9 number",
"line": 21,
"match": {
"location": "formatters_print_test.go:65"
},
"result": {
"status": "failed",
"error_message": "9 is not even",
"duration": 0
}
}
]
}
]
}
]

Просмотреть файл

@ -0,0 +1,70 @@
[
{
"uri": "formatter-tests/features/scenario_with_background.feature",
"id": "single-scenario-with-background",
"keyword": "Feature",
"name": "single scenario with background",
"description": "",
"line": 1,
"elements": [
{
"id": "single-scenario-with-background;scenario",
"keyword": "Scenario",
"name": "scenario",
"description": "",
"line": 7,
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "passing step",
"line": 4,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "And ",
"name": "passing step",
"line": 5,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "When ",
"name": "passing step",
"line": 8,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "Then ",
"name": "passing step",
"line": 9,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
}
]
}
]
}
]

Просмотреть файл

@ -0,0 +1,20 @@
[
{
"uri": "formatter-tests/features/scenario_without_steps_with_background.feature",
"id": "empty-feature",
"keyword": "Feature",
"name": "empty feature",
"description": "",
"line": 1,
"elements": [
{
"id": "empty-feature;without-steps",
"keyword": "Scenario",
"name": "without steps",
"description": "",
"line": 6,
"type": "scenario"
}
]
}
]

Просмотреть файл

@ -0,0 +1,34 @@
[
{
"uri": "formatter-tests/features/single_scenario_with_passing_step.feature",
"id": "single-passing-scenario",
"keyword": "Feature",
"name": "single passing scenario",
"description": " describes\n a single scenario\n feature",
"line": 1,
"elements": [
{
"id": "single-passing-scenario;one-step-passing",
"keyword": "Scenario",
"name": "one step passing",
"description": "",
"line": 6,
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "a passing step",
"line": 7,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
}
]
}
]
}
]

Просмотреть файл

@ -0,0 +1,122 @@
[
{
"uri": "formatter-tests/features/some_scenarions_including_failing.feature",
"id": "some-scenarios",
"keyword": "Feature",
"name": "some scenarios",
"description": "",
"line": 1,
"elements": [
{
"id": "some-scenarios;failing",
"keyword": "Scenario",
"name": "failing",
"description": "",
"line": 3,
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "passing step",
"line": 4,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "When ",
"name": "failing step",
"line": 5,
"match": {
"location": "formatters_print_test.go:79"
},
"result": {
"status": "failed",
"error_message": "step failed",
"duration": 0
}
},
{
"keyword": "Then ",
"name": "passing step",
"line": 6,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "skipped"
}
}
]
},
{
"id": "some-scenarios;pending",
"keyword": "Scenario",
"name": "pending",
"description": "",
"line": 8,
"type": "scenario",
"steps": [
{
"keyword": "When ",
"name": "pending step",
"line": 9,
"match": {
"location": "formatter-tests/features/some_scenarions_including_failing.feature:9"
},
"result": {
"status": "pending"
}
},
{
"keyword": "Then ",
"name": "passing step",
"line": 10,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "skipped"
}
}
]
},
{
"id": "some-scenarios;undefined",
"keyword": "Scenario",
"name": "undefined",
"description": "",
"line": 12,
"type": "scenario",
"steps": [
{
"keyword": "When ",
"name": "undefined",
"line": 13,
"match": {
"location": "formatter-tests/features/some_scenarions_including_failing.feature:13"
},
"result": {
"status": "undefined"
}
},
{
"keyword": "Then ",
"name": "passing step",
"line": 14,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "skipped"
}
}
]
}
]
}
]

Просмотреть файл

@ -0,0 +1,115 @@
[
{
"uri": "formatter-tests/features/two_scenarios_with_background_fail.feature",
"id": "two-scenarios-with-background-fail",
"keyword": "Feature",
"name": "two scenarios with background fail",
"description": "",
"line": 1,
"elements": [
{
"id": "two-scenarios-with-background-fail;one",
"keyword": "Scenario",
"name": "one",
"description": "",
"line": 7,
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "passing step",
"line": 4,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "And ",
"name": "failing step",
"line": 5,
"match": {
"location": "formatters_print_test.go:79"
},
"result": {
"status": "failed",
"error_message": "step failed",
"duration": 0
}
},
{
"keyword": "When ",
"name": "passing step",
"line": 8,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "skipped"
}
},
{
"keyword": "Then ",
"name": "passing step",
"line": 9,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "skipped"
}
}
]
},
{
"id": "two-scenarios-with-background-fail;two",
"keyword": "Scenario",
"name": "two",
"description": "",
"line": 11,
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "passing step",
"line": 4,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "passed",
"duration": 0
}
},
{
"keyword": "And ",
"name": "failing step",
"line": 5,
"match": {
"location": "formatters_print_test.go:79"
},
"result": {
"status": "failed",
"error_message": "step failed",
"duration": 0
}
},
{
"keyword": "Then ",
"name": "passing step",
"line": 12,
"match": {
"location": "formatters_print_test.go:63"
},
"result": {
"status": "skipped"
}
}
]
}
]
}
]

Просмотреть файл

@ -0,0 +1,52 @@
[
{
"uri": "formatter-tests/features/with_few_empty_scenarios.feature",
"id": "few-empty-scenarios",
"keyword": "Feature",
"name": "few empty scenarios",
"description": "",
"line": 1,
"elements": [
{
"id": "few-empty-scenarios;one",
"keyword": "Scenario",
"name": "one",
"description": "",
"line": 3,
"type": "scenario"
},
{
"id": "few-empty-scenarios;two;first-group;2",
"keyword": "Scenario Outline",
"name": "two",
"description": "",
"line": 9,
"type": "scenario"
},
{
"id": "few-empty-scenarios;two;first-group;3",
"keyword": "Scenario Outline",
"name": "two",
"description": "",
"line": 10,
"type": "scenario"
},
{
"id": "few-empty-scenarios;two;second-group;2",
"keyword": "Scenario Outline",
"name": "two",
"description": "",
"line": 14,
"type": "scenario"
},
{
"id": "few-empty-scenarios;three",
"keyword": "Scenario",
"name": "three",
"description": "",
"line": 16,
"type": "scenario"
}
]
}
]

3
formatter-tests/events/empty Обычный файл
Просмотреть файл

@ -0,0 +1,3 @@
{"event":"TestRunStarted","version":"0.1.0","timestamp":-6795364578871,"suite":"events"}
{"event":"TestSource","location":"formatter-tests/features/empty.feature:1","source":"Feature: empty feature\n"}
{"event":"TestRunFinished","status":"pending","timestamp":-6795364578871,"snippets":"","memory":""}

Просмотреть файл

@ -0,0 +1,3 @@
{"event":"TestRunStarted","version":"0.1.0","timestamp":-6795364578871,"suite":"events"}
{"event":"TestSource","location":"formatter-tests/features/empty_with_description.feature:1","source":"Feature: empty feature\n describes\n an empty\n feature\n"}
{"event":"TestRunFinished","status":"pending","timestamp":-6795364578871,"snippets":"","memory":""}

Просмотреть файл

@ -0,0 +1,5 @@
{"event":"TestRunStarted","version":"0.1.0","timestamp":-6795364578871,"suite":"events"}
{"event":"TestSource","location":"formatter-tests/features/empty_with_single_scenario_without_steps.feature:1","source":"Feature: empty feature\n\n Scenario: without steps\n"}
{"event":"TestCaseStarted","location":"formatter-tests/features/empty_with_single_scenario_without_steps.feature:3","timestamp":-6795364578871}
{"event":"TestCaseFinished","location":"formatter-tests/features/empty_with_single_scenario_without_steps.feature:3","timestamp":-6795364578871,"status":"undefined"}
{"event":"TestRunFinished","status":"pending","timestamp":-6795364578871,"snippets":"","memory":""}

Просмотреть файл

@ -0,0 +1,5 @@
{"event":"TestRunStarted","version":"0.1.0","timestamp":-6795364578871,"suite":"events"}
{"event":"TestSource","location":"formatter-tests/features/empty_with_single_scenario_without_steps_and_description.feature:1","source":"Feature: empty feature\n describes\n an empty\n feature\n\n Scenario: without steps\n"}
{"event":"TestCaseStarted","location":"formatter-tests/features/empty_with_single_scenario_without_steps_and_description.feature:6","timestamp":-6795364578871}
{"event":"TestCaseFinished","location":"formatter-tests/features/empty_with_single_scenario_without_steps_and_description.feature:6","timestamp":-6795364578871,"status":"undefined"}
{"event":"TestRunFinished","status":"pending","timestamp":-6795364578871,"snippets":"","memory":""}

58
formatter-tests/events/scenario_outline Обычный файл
Просмотреть файл

@ -0,0 +1,58 @@
{"event":"TestRunStarted","version":"0.1.0","timestamp":-6795364578871,"suite":"events"}
{"event":"TestSource","location":"formatter-tests/features/scenario_outline.feature:2","source":"@outline @tag\nFeature: outline\n\n @scenario\n Scenario Outline: outline\n Given passing step\n When passing step\n Then odd \u003codd\u003e and even \u003ceven\u003e number\n\n @tagged\n Examples: tagged\n | odd | even |\n | 1 | 2 |\n | 2 | 0 |\n | 3 | 11 |\n\n @tag2\n Examples:\n | odd | even |\n | 1 | 14 |\n | 3 | 9 |\n\n"}
{"event":"TestCaseStarted","location":"formatter-tests/features/scenario_outline.feature:13","timestamp":-6795364578871}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:6","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:6","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:6","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:7","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:7","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:7","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:8","definition_id":"formatters_print_test.go:65 -\u003e oddEvenStepDef","arguments":[[4,5],[5,15]]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:8","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:8","timestamp":-6795364578871,"status":"passed"}
{"event":"TestCaseFinished","location":"formatter-tests/features/scenario_outline.feature:13","timestamp":-6795364578871,"status":"passed"}
{"event":"TestCaseStarted","location":"formatter-tests/features/scenario_outline.feature:14","timestamp":-6795364578871}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:6","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:6","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:6","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:7","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:7","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:7","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:8","definition_id":"formatters_print_test.go:65 -\u003e oddEvenStepDef","arguments":[[4,5],[5,15]]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:8","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:8","timestamp":-6795364578871,"status":"failed","summary":"2 is not odd"}
{"event":"TestCaseFinished","location":"formatter-tests/features/scenario_outline.feature:14","timestamp":-6795364578871,"status":"failed"}
{"event":"TestCaseStarted","location":"formatter-tests/features/scenario_outline.feature:15","timestamp":-6795364578871}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:6","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:6","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:6","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:7","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:7","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:7","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:8","definition_id":"formatters_print_test.go:65 -\u003e oddEvenStepDef","arguments":[[4,5],[5,15]]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:8","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:8","timestamp":-6795364578871,"status":"failed","summary":"11 is not even"}
{"event":"TestCaseFinished","location":"formatter-tests/features/scenario_outline.feature:15","timestamp":-6795364578871,"status":"failed"}
{"event":"TestCaseStarted","location":"formatter-tests/features/scenario_outline.feature:20","timestamp":-6795364578871}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:6","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:6","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:6","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:7","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:7","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:7","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:8","definition_id":"formatters_print_test.go:65 -\u003e oddEvenStepDef","arguments":[[4,5],[5,15]]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:8","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:8","timestamp":-6795364578871,"status":"passed"}
{"event":"TestCaseFinished","location":"formatter-tests/features/scenario_outline.feature:20","timestamp":-6795364578871,"status":"passed"}
{"event":"TestCaseStarted","location":"formatter-tests/features/scenario_outline.feature:21","timestamp":-6795364578871}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:6","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:6","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:6","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:7","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:7","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:7","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_outline.feature:8","definition_id":"formatters_print_test.go:65 -\u003e oddEvenStepDef","arguments":[[4,5],[5,15]]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_outline.feature:8","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_outline.feature:8","timestamp":-6795364578871,"status":"failed","summary":"9 is not even"}
{"event":"TestCaseFinished","location":"formatter-tests/features/scenario_outline.feature:21","timestamp":-6795364578871,"status":"failed"}
{"event":"TestRunFinished","status":"failed","timestamp":-6795364578871,"snippets":"","memory":""}

Просмотреть файл

@ -0,0 +1,17 @@
{"event":"TestRunStarted","version":"0.1.0","timestamp":-6795364578871,"suite":"events"}
{"event":"TestSource","location":"formatter-tests/features/scenario_with_background.feature:1","source":"Feature: single scenario with background\n\n Background: named\n Given passing step\n And passing step\n\n Scenario: scenario\n When passing step\n Then passing step\n"}
{"event":"TestCaseStarted","location":"formatter-tests/features/scenario_with_background.feature:7","timestamp":-6795364578871}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_with_background.feature:4","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_with_background.feature:4","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_with_background.feature:4","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_with_background.feature:5","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_with_background.feature:5","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_with_background.feature:5","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_with_background.feature:8","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_with_background.feature:8","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_with_background.feature:8","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/scenario_with_background.feature:9","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/scenario_with_background.feature:9","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/scenario_with_background.feature:9","timestamp":-6795364578871,"status":"passed"}
{"event":"TestCaseFinished","location":"formatter-tests/features/scenario_with_background.feature:7","timestamp":-6795364578871,"status":"passed"}
{"event":"TestRunFinished","status":"passed","timestamp":-6795364578871,"snippets":"","memory":""}

Просмотреть файл

@ -0,0 +1,5 @@
{"event":"TestRunStarted","version":"0.1.0","timestamp":-6795364578871,"suite":"events"}
{"event":"TestSource","location":"formatter-tests/features/scenario_without_steps_with_background.feature:1","source":"Feature: empty feature\n\n Background:\n Given passing step\n\n Scenario: without steps\n"}
{"event":"TestCaseStarted","location":"formatter-tests/features/scenario_without_steps_with_background.feature:6","timestamp":-6795364578871}
{"event":"TestCaseFinished","location":"formatter-tests/features/scenario_without_steps_with_background.feature:6","timestamp":-6795364578871,"status":"undefined"}
{"event":"TestRunFinished","status":"pending","timestamp":-6795364578871,"snippets":"","memory":""}

Просмотреть файл

@ -0,0 +1,8 @@
{"event":"TestRunStarted","version":"0.1.0","timestamp":-6795364578871,"suite":"events"}
{"event":"TestSource","location":"formatter-tests/features/single_scenario_with_passing_step.feature:1","source":"Feature: single passing scenario\n describes\n a single scenario\n feature\n\n Scenario: one step passing\n Given a passing step\n"}
{"event":"TestCaseStarted","location":"formatter-tests/features/single_scenario_with_passing_step.feature:6","timestamp":-6795364578871}
{"event":"StepDefinitionFound","location":"formatter-tests/features/single_scenario_with_passing_step.feature:7","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/single_scenario_with_passing_step.feature:7","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/single_scenario_with_passing_step.feature:7","timestamp":-6795364578871,"status":"passed"}
{"event":"TestCaseFinished","location":"formatter-tests/features/single_scenario_with_passing_step.feature:6","timestamp":-6795364578871,"status":"passed"}
{"event":"TestRunFinished","status":"passed","timestamp":-6795364578871,"snippets":"","memory":""}

Просмотреть файл

@ -0,0 +1,29 @@
{"event":"TestRunStarted","version":"0.1.0","timestamp":-6795364578871,"suite":"events"}
{"event":"TestSource","location":"formatter-tests/features/some_scenarions_including_failing.feature:1","source":"Feature: some scenarios\n\n Scenario: failing\n Given passing step\n When failing step\n Then passing step\n\n Scenario: pending\n When pending step\n Then passing step\n\n Scenario: undefined\n When undefined\n Then passing step\n"}
{"event":"TestCaseStarted","location":"formatter-tests/features/some_scenarions_including_failing.feature:3","timestamp":-6795364578871}
{"event":"StepDefinitionFound","location":"formatter-tests/features/some_scenarions_including_failing.feature:4","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/some_scenarions_including_failing.feature:4","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/some_scenarions_including_failing.feature:4","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/some_scenarions_including_failing.feature:5","definition_id":"formatters_print_test.go:79 -\u003e failingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/some_scenarions_including_failing.feature:5","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/some_scenarions_including_failing.feature:5","timestamp":-6795364578871,"status":"failed","summary":"step failed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/some_scenarions_including_failing.feature:6","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/some_scenarions_including_failing.feature:6","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/some_scenarions_including_failing.feature:6","timestamp":-6795364578871,"status":"skipped"}
{"event":"TestCaseFinished","location":"formatter-tests/features/some_scenarions_including_failing.feature:3","timestamp":-6795364578871,"status":"failed"}
{"event":"TestCaseStarted","location":"formatter-tests/features/some_scenarions_including_failing.feature:8","timestamp":-6795364578871}
{"event":"StepDefinitionFound","location":"formatter-tests/features/some_scenarions_including_failing.feature:9","definition_id":"formatters_print_test.go:77 -\u003e pendingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/some_scenarions_including_failing.feature:9","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/some_scenarions_including_failing.feature:9","timestamp":-6795364578871,"status":"pending"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/some_scenarions_including_failing.feature:10","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/some_scenarions_including_failing.feature:10","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/some_scenarions_including_failing.feature:10","timestamp":-6795364578871,"status":"skipped"}
{"event":"TestCaseFinished","location":"formatter-tests/features/some_scenarions_including_failing.feature:8","timestamp":-6795364578871,"status":"pending"}
{"event":"TestCaseStarted","location":"formatter-tests/features/some_scenarions_including_failing.feature:12","timestamp":-6795364578871}
{"event":"TestStepStarted","location":"formatter-tests/features/some_scenarions_including_failing.feature:13","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/some_scenarions_including_failing.feature:13","timestamp":-6795364578871,"status":"undefined"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/some_scenarions_including_failing.feature:14","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/some_scenarions_including_failing.feature:14","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/some_scenarions_including_failing.feature:14","timestamp":-6795364578871,"status":"skipped"}
{"event":"TestCaseFinished","location":"formatter-tests/features/some_scenarions_including_failing.feature:12","timestamp":-6795364578871,"status":"undefined"}
{"event":"TestRunFinished","status":"failed","timestamp":-6795364578871,"snippets":"You can implement step definitions for undefined steps with these snippets:\n\nfunc undefined() error {\n\treturn godog.ErrPending\n}\n\nfunc FeatureContext(s *godog.Suite) {\n\ts.Step(`^undefined$`, undefined)\n}\n","memory":""}

Просмотреть файл

@ -0,0 +1,28 @@
{"event":"TestRunStarted","version":"0.1.0","timestamp":-6795364578871,"suite":"events"}
{"event":"TestSource","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:1","source":"Feature: two scenarios with background fail\n\n Background:\n Given passing step\n And failing step\n\n Scenario: one\n When passing step\n Then passing step\n\n Scenario: two\n Then passing step\n"}
{"event":"TestCaseStarted","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:7","timestamp":-6795364578871}
{"event":"StepDefinitionFound","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:4","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:4","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:4","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:5","definition_id":"formatters_print_test.go:79 -\u003e failingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:5","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:5","timestamp":-6795364578871,"status":"failed","summary":"step failed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:8","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:8","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:8","timestamp":-6795364578871,"status":"skipped"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:9","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:9","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:9","timestamp":-6795364578871,"status":"skipped"}
{"event":"TestCaseFinished","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:7","timestamp":-6795364578871,"status":"failed"}
{"event":"TestCaseStarted","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:11","timestamp":-6795364578871}
{"event":"StepDefinitionFound","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:4","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:4","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:4","timestamp":-6795364578871,"status":"passed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:5","definition_id":"formatters_print_test.go:79 -\u003e failingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:5","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:5","timestamp":-6795364578871,"status":"failed","summary":"step failed"}
{"event":"StepDefinitionFound","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:12","definition_id":"formatters_print_test.go:63 -\u003e passingStepDef","arguments":[]}
{"event":"TestStepStarted","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:12","timestamp":-6795364578871}
{"event":"TestStepFinished","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:12","timestamp":-6795364578871,"status":"skipped"}
{"event":"TestCaseFinished","location":"formatter-tests/features/two_scenarios_with_background_fail.feature:11","timestamp":-6795364578871,"status":"failed"}
{"event":"TestRunFinished","status":"failed","timestamp":-6795364578871,"snippets":"","memory":""}

Просмотреть файл

@ -0,0 +1,13 @@
{"event":"TestRunStarted","version":"0.1.0","timestamp":-6795364578871,"suite":"events"}
{"event":"TestSource","location":"formatter-tests/features/with_few_empty_scenarios.feature:1","source":"Feature: few empty scenarios\n\n Scenario: one\n\n Scenario Outline: two\n\n Examples: first group\n | one | two |\n | 1 | 2 |\n | 4 | 7 |\n\n Examples: second group\n | one | two |\n | 5 | 9 |\n\n Scenario: three\n"}
{"event":"TestCaseStarted","location":"formatter-tests/features/with_few_empty_scenarios.feature:3","timestamp":-6795364578871}
{"event":"TestCaseFinished","location":"formatter-tests/features/with_few_empty_scenarios.feature:3","timestamp":-6795364578871,"status":"undefined"}
{"event":"TestCaseStarted","location":"formatter-tests/features/with_few_empty_scenarios.feature:9","timestamp":-6795364578871}
{"event":"TestCaseFinished","location":"formatter-tests/features/with_few_empty_scenarios.feature:9","timestamp":-6795364578871,"status":"undefined"}
{"event":"TestCaseStarted","location":"formatter-tests/features/with_few_empty_scenarios.feature:10","timestamp":-6795364578871}
{"event":"TestCaseFinished","location":"formatter-tests/features/with_few_empty_scenarios.feature:10","timestamp":-6795364578871,"status":"undefined"}
{"event":"TestCaseStarted","location":"formatter-tests/features/with_few_empty_scenarios.feature:14","timestamp":-6795364578871}
{"event":"TestCaseFinished","location":"formatter-tests/features/with_few_empty_scenarios.feature:14","timestamp":-6795364578871,"status":"undefined"}
{"event":"TestCaseStarted","location":"formatter-tests/features/with_few_empty_scenarios.feature:16","timestamp":-6795364578871}
{"event":"TestCaseFinished","location":"formatter-tests/features/with_few_empty_scenarios.feature:16","timestamp":-6795364578871,"status":"undefined"}
{"event":"TestRunFinished","status":"pending","timestamp":-6795364578871,"snippets":"","memory":""}

4
formatter-tests/junit/empty Обычный файл
Просмотреть файл

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="junit" tests="0" skipped="0" failures="0" errors="0" time="0">
<testsuite name="empty feature" tests="0" skipped="0" failures="0" errors="0" time="0"></testsuite>
</testsuites>

Просмотреть файл

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="junit" tests="0" skipped="0" failures="0" errors="0" time="0">
<testsuite name="empty feature" tests="0" skipped="0" failures="0" errors="0" time="0"></testsuite>
</testsuites>

Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="junit" tests="1" skipped="0" failures="0" errors="0" time="0">
<testsuite name="empty feature" tests="1" skipped="0" failures="0" errors="0" time="0">
<testcase name="without steps" status="" time="0"></testcase>
</testsuite>
</testsuites>

Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="junit" tests="1" skipped="0" failures="0" errors="0" time="0">
<testsuite name="empty feature" tests="1" skipped="0" failures="0" errors="0" time="0">
<testcase name="without steps" status="" time="0"></testcase>
</testsuite>
</testsuites>

16
formatter-tests/junit/scenario_outline Обычный файл
Просмотреть файл

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="junit" tests="5" skipped="0" failures="3" errors="0" time="0">
<testsuite name="outline" tests="5" skipped="0" failures="3" errors="0" time="0">
<testcase name="outline #1" status="passed" time="0"></testcase>
<testcase name="outline #2" status="failed" time="0">
<failure message="Step odd 2 and even 0 number: 2 is not odd"></failure>
</testcase>
<testcase name="outline #3" status="failed" time="0">
<failure message="Step odd 3 and even 11 number: 11 is not even"></failure>
</testcase>
<testcase name="outline #4" status="passed" time="0"></testcase>
<testcase name="outline #5" status="failed" time="0">
<failure message="Step odd 3 and even 9 number: 9 is not even"></failure>
</testcase>
</testsuite>
</testsuites>

Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="junit" tests="1" skipped="0" failures="0" errors="0" time="0">
<testsuite name="single scenario with background" tests="1" skipped="0" failures="0" errors="0" time="0">
<testcase name="scenario" status="passed" time="0"></testcase>
</testsuite>
</testsuites>

Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="junit" tests="1" skipped="0" failures="0" errors="0" time="0">
<testsuite name="empty feature" tests="1" skipped="0" failures="0" errors="0" time="0">
<testcase name="without steps" status="" time="0"></testcase>
</testsuite>
</testsuites>

Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="junit" tests="1" skipped="0" failures="0" errors="0" time="0">
<testsuite name="single passing scenario" tests="1" skipped="0" failures="0" errors="0" time="0">
<testcase name="one step passing" status="passed" time="0"></testcase>
</testsuite>
</testsuites>

Просмотреть файл

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="junit" tests="3" skipped="0" failures="1" errors="2" time="0">
<testsuite name="some scenarios" tests="3" skipped="0" failures="1" errors="2" time="0">
<testcase name="failing" status="failed" time="0">
<failure message="Step failing step: step failed"></failure>
<error message="Step passing step" type="skipped"></error>
</testcase>
<testcase name="pending" status="pending" time="0">
<error message="Step pending step: TODO: write pending definition" type="pending"></error>
<error message="Step passing step" type="skipped"></error>
</testcase>
<testcase name="undefined" status="undefined" time="0">
<error message="Step undefined" type="undefined"></error>
<error message="Step passing step" type="skipped"></error>
</testcase>
</testsuite>
</testsuites>

Просмотреть файл

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="junit" tests="2" skipped="0" failures="2" errors="0" time="0">
<testsuite name="two scenarios with background fail" tests="2" skipped="0" failures="2" errors="0" time="0">
<testcase name="one" status="failed" time="0">
<failure message="Step failing step: step failed"></failure>
<error message="Step passing step" type="skipped"></error>
<error message="Step passing step" type="skipped"></error>
</testcase>
<testcase name="two" status="failed" time="0">
<failure message="Step failing step: step failed"></failure>
<error message="Step passing step" type="skipped"></error>
</testcase>
</testsuite>
</testsuites>

Просмотреть файл

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="junit" tests="5" skipped="0" failures="0" errors="0" time="0">
<testsuite name="few empty scenarios" tests="5" skipped="0" failures="0" errors="0" time="0">
<testcase name="one" status="" time="0"></testcase>
<testcase name="two #1" status="" time="0"></testcase>
<testcase name="two #2" status="" time="0"></testcase>
<testcase name="two #3" status="" time="0"></testcase>
<testcase name="three" status="" time="0"></testcase>
</testsuite>
</testsuites>

Просмотреть файл

@ -1,9 +1,9 @@
<bold-white>Feature:</bold-white> outline
<bold-white>Scenario Outline:</bold-white> outline <bold-black># formatter-tests/features/scenario_outline.feature:5</bold-black>
<cyan>Given</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<cyan>When</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<cyan>Then</cyan> <cyan>odd </cyan><bold-cyan><odd></bold-cyan><cyan> and even </cyan><bold-cyan><even></bold-cyan><cyan> number</cyan> <bold-black># formatters_print_test.go:67 -> oddEvenStepDef</bold-black>
<cyan>Given</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
<cyan>When</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
<cyan>Then</cyan> <cyan>odd </cyan><bold-cyan><odd></bold-cyan><cyan> and even </cyan><bold-cyan><even></bold-cyan><cyan> number</cyan> <bold-black># formatters_print_test.go:65 -> oddEvenStepDef</bold-black>
<bold-white>Examples:</bold-white> tagged
| <cyan>odd</cyan> | <cyan>even</cyan> |

Просмотреть файл

@ -1,12 +1,12 @@
<bold-white>Feature:</bold-white> single scenario with background
<bold-white>Background:</bold-white> named
<green>Given</green> <green>passing step</green> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<green>And</green> <green>passing step</green> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<green>Given</green> <green>passing step</green> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
<green>And</green> <green>passing step</green> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
<bold-white>Scenario:</bold-white> scenario <bold-black># formatter-tests/features/scenario_with_background.feature:7</bold-black>
<green>When</green> <green>passing step</green> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<green>Then</green> <green>passing step</green> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<green>When</green> <green>passing step</green> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
<green>Then</green> <green>passing step</green> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
1 scenarios (<green>1 passed</green>)
4 steps (<green>4 passed</green>)

Просмотреть файл

@ -4,7 +4,7 @@
feature
<bold-white>Scenario:</bold-white> one step passing <bold-black># formatter-tests/features/single_scenario_with_passing_step.feature:6</bold-black>
<green>Given</green> <green>a passing step</green> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<green>Given</green> <green>a passing step</green> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
1 scenarios (<green>1 passed</green>)
1 steps (<green>1 passed</green>)

Просмотреть файл

@ -1,19 +1,19 @@
<bold-white>Feature:</bold-white> some scenarios
<bold-white>Scenario:</bold-white> failing <bold-black># formatter-tests/features/some_scenarions_including_failing.feature:3</bold-black>
<green>Given</green> <green>passing step</green> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<red>When</red> <red>failing step</red> <bold-black># formatters_print_test.go:81 -> failingStepDef</bold-black>
<green>Given</green> <green>passing step</green> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
<red>When</red> <red>failing step</red> <bold-black># formatters_print_test.go:79 -> failingStepDef</bold-black>
<bold-red>step failed</bold-red>
<cyan>Then</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<cyan>Then</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
<bold-white>Scenario:</bold-white> pending <bold-black># formatter-tests/features/some_scenarions_including_failing.feature:8</bold-black>
<yellow>When</yellow> <yellow>pending step</yellow> <bold-black># formatters_print_test.go:79 -> pendingStepDef</bold-black>
<yellow>When</yellow> <yellow>pending step</yellow> <bold-black># formatters_print_test.go:77 -> pendingStepDef</bold-black>
<yellow>TODO: write pending definition</yellow>
<cyan>Then</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<cyan>Then</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
<bold-white>Scenario:</bold-white> undefined <bold-black># formatter-tests/features/some_scenarions_including_failing.feature:12</bold-black>
<yellow>When</yellow> <yellow>undefined</yellow>
<cyan>Then</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<cyan>Then</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
--- <red>Failed steps:</red>

Просмотреть файл

@ -1,16 +1,17 @@
<bold-white>Feature:</bold-white> two scenarios with background fail
<bold-white>Background:</bold-white>
<green>Given</green> <green>passing step</green> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<red>And</red> <red>failing step</red> <bold-black># formatters_print_test.go:81 -> failingStepDef</bold-black>
<green>Given</green> <green>passing step</green> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
<red>And</red> <red>failing step</red> <bold-black># formatters_print_test.go:79 -> failingStepDef</bold-black>
<bold-red>step failed</bold-red>
<bold-white>Scenario:</bold-white> one <bold-black># formatter-tests/features/two_scenarios_with_background_fail.feature:7</bold-black>
<cyan>When</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<cyan>Then</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<cyan>When</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
<cyan>Then</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
<bold-white>Scenario:</bold-white> two <bold-black># formatter-tests/features/two_scenarios_with_background_fail.feature:11</bold-black>
<cyan>Then</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:65 -> passingStepDef</bold-black>
<bold-red>step failed</bold-red>
<cyan>Then</cyan> <cyan>passing step</cyan> <bold-black># formatters_print_test.go:63 -> passingStepDef</bold-black>
--- <red>Failed steps:</red>

5
formatter-tests/progress/empty Обычный файл
Просмотреть файл

@ -0,0 +1,5 @@
No scenarios
No steps
0s

Просмотреть файл

@ -0,0 +1,5 @@
No scenarios
No steps
0s

Просмотреть файл

@ -0,0 +1,5 @@
1 scenarios (<yellow>1 undefined</yellow>)
No steps
0s

Просмотреть файл

@ -0,0 +1,5 @@
1 scenarios (<yellow>1 undefined</yellow>)
No steps
0s

21
formatter-tests/progress/scenario_outline Обычный файл
Просмотреть файл

@ -0,0 +1,21 @@
<green>.</green><green>.</green><green>.</green><green>.</green><green>.</green><red>F</red><green>.</green><green>.</green><red>F</red><green>.</green><green>.</green><green>.</green><green>.</green><green>.</green><red>F</red> 15
--- <red>Failed steps:</red>
<red>Scenario Outline: outline</red><bold-black> # formatter-tests/features/scenario_outline.feature:5</bold-black>
<red>Then odd 2 and even 0 number</red><bold-black> # formatter-tests/features/scenario_outline.feature:8</bold-black>
<red>Error: </red><bold-red>2 is not odd</bold-red>
<red>Scenario Outline: outline</red><bold-black> # formatter-tests/features/scenario_outline.feature:5</bold-black>
<red>Then odd 3 and even 11 number</red><bold-black> # formatter-tests/features/scenario_outline.feature:8</bold-black>
<red>Error: </red><bold-red>11 is not even</bold-red>
<red>Scenario Outline: outline</red><bold-black> # formatter-tests/features/scenario_outline.feature:5</bold-black>
<red>Then odd 3 and even 9 number</red><bold-black> # formatter-tests/features/scenario_outline.feature:8</bold-black>
<red>Error: </red><bold-red>9 is not even</bold-red>
5 scenarios (<green>2 passed</green>, <red>3 failed</red>)
15 steps (<green>12 passed</green>, <red>3 failed</red>)
0s

Просмотреть файл

@ -0,0 +1,6 @@
<green>.</green><green>.</green><green>.</green><green>.</green> 4
1 scenarios (<green>1 passed</green>)
4 steps (<green>4 passed</green>)
0s

Просмотреть файл

@ -0,0 +1,5 @@
1 scenarios (<yellow>1 undefined</yellow>)
No steps
0s

Просмотреть файл

@ -0,0 +1,6 @@
<green>.</green> 1
1 scenarios (<green>1 passed</green>)
1 steps (<green>1 passed</green>)
0s

Просмотреть файл

@ -0,0 +1,24 @@
<green>.</green><red>F</red><cyan>-</cyan><yellow>P</yellow><cyan>-</cyan><yellow>U</yellow><cyan>-</cyan> 7
--- <red>Failed steps:</red>
<red>Scenario: failing</red><bold-black> # formatter-tests/features/some_scenarions_including_failing.feature:3</bold-black>
<red>When failing step</red><bold-black> # formatter-tests/features/some_scenarions_including_failing.feature:5</bold-black>
<red>Error: </red><bold-red>step failed</bold-red>
3 scenarios (<red>1 failed</red>, <yellow>1 pending</yellow>, <yellow>1 undefined</yellow>)
7 steps (<green>1 passed</green>, <red>1 failed</red>, <yellow>1 pending</yellow>, <yellow>1 undefined</yellow>, <cyan>3 skipped</cyan>)
0s
<yellow>You can implement step definitions for undefined steps with these snippets:</yellow>
<yellow>
func undefined() error {
return godog.ErrPending
}
func FeatureContext(s *godog.Suite) {
s.Step(`^undefined$`, undefined)
}
</yellow>

Просмотреть файл

@ -0,0 +1,17 @@
<green>.</green><red>F</red><cyan>-</cyan><cyan>-</cyan><green>.</green><red>F</red><cyan>-</cyan> 7
--- <red>Failed steps:</red>
<red>Scenario: one</red><bold-black> # formatter-tests/features/two_scenarios_with_background_fail.feature:7</bold-black>
<red>And failing step</red><bold-black> # formatter-tests/features/two_scenarios_with_background_fail.feature:5</bold-black>
<red>Error: </red><bold-red>step failed</bold-red>
<red>Scenario: two</red><bold-black> # formatter-tests/features/two_scenarios_with_background_fail.feature:11</bold-black>
<red>And failing step</red><bold-black> # formatter-tests/features/two_scenarios_with_background_fail.feature:5</bold-black>
<red>Error: </red><bold-red>step failed</bold-red>
2 scenarios (<red>2 failed</red>)
7 steps (<green>2 passed</green>, <red>2 failed</red>, <cyan>3 skipped</cyan>)
0s

Просмотреть файл

@ -0,0 +1,5 @@
5 scenarios (<yellow>5 undefined</yellow>)
No steps
0s

Просмотреть файл

@ -56,9 +56,10 @@ func TestPrintingFormatters(t *testing.T) {
actual := buf.String()
actual = trimAllLines(actual)
assert.Equalf(t, expected, actual, "expected: [%s], actual: [%s]", expected, actual)
assert.Equalf(t, expected, actual, "path: %s", expectOutputPath)
}
}
os.Setenv("GODOG_TESTED_PACKAGE", pkg)
}