-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from lawnmowerlatte/master
Deduplicate extra results caused by @autoretry in Behave 1.2.6
- Loading branch information
Showing
6 changed files
with
222 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
[{"elements": [{"keyword": "Scenario", | ||
"location": "features/test.feature:15", | ||
"name": "A failing test with autoretry", | ||
"steps": [{"keyword": "Given", | ||
"location": "features/test.feature:16", | ||
"match": {"arguments": [], | ||
"location": "features/steps/test.py:3"}, | ||
"name": "we have behave installed", | ||
"result": {"duration": 0.00012183189392089844, | ||
"status": "passed"}, | ||
"step_type": "given"}, | ||
{"keyword": "When", | ||
"location": "features/test.feature:17", | ||
"match": {"arguments": [], | ||
"location": "features/steps/test.py:7"}, | ||
"name": "we implement a test", | ||
"result": {"duration": 0.00010704994201660156, | ||
"status": "passed"}, | ||
"step_type": "when"}, | ||
{"keyword": "Then", | ||
"location": "features/test.feature:18", | ||
"match": {"arguments": [], | ||
"location": "features/steps/test.py:15"}, | ||
"name": "behave will fail it for us...sometimes", | ||
"result": {"duration": 0.0002589225769042969, | ||
"error_message": ["Traceback (most recent call last):", | ||
" File \"/data/home/london/fprincipato/b2c_fix/lib/python2.6/site-packages/behave/model.py\", line 1456, in run", | ||
" match.run(runner.context)", | ||
" File \"/data/home/london/fprincipato/b2c_fix/lib/python2.6/site-packages/behave/model.py\", line 1903, in run", | ||
" self.func(context, *args, **kwargs)", | ||
" File \"features/steps/test.py\", line 17, in step_impl", | ||
" assert (1 == 2)", | ||
"AssertionError"], | ||
"status": "failed"}, | ||
"step_type": "then"}], | ||
"tags": ["autoretry"], | ||
"type": "scenario"}, | ||
{"keyword": "Scenario", | ||
"location": "features/test.feature:15", | ||
"name": "A failing test with autoretry", | ||
"steps": [{"keyword": "Given", | ||
"location": "features/test.feature:16", | ||
"match": {"arguments": [], | ||
"location": "features/steps/test.py:3"}, | ||
"name": "we have behave installed", | ||
"result": {"duration": 0.00012183189392089844, | ||
"status": "passed"}, | ||
"step_type": "given"}, | ||
{"keyword": "When", | ||
"location": "features/test.feature:17", | ||
"match": {"arguments": [], | ||
"location": "features/steps/test.py:7"}, | ||
"name": "we implement a test", | ||
"result": {"duration": 0.00010704994201660156, | ||
"status": "passed"}, | ||
"step_type": "when"}, | ||
{"keyword": "Then", | ||
"location": "features/test.feature:18", | ||
"match": {"arguments": [], | ||
"location": "features/steps/test.py:15"}, | ||
"name": "behave will fail it for us...sometimes", | ||
"result": {"duration": 0.0002589225769042969, | ||
"error_message": ["Traceback (most recent call last):", | ||
" File \"/data/home/london/fprincipato/b2c_fix/lib/python2.6/site-packages/behave/model.py\", line 1456, in run", | ||
" match.run(runner.context)", | ||
" File \"/data/home/london/fprincipato/b2c_fix/lib/python2.6/site-packages/behave/model.py\", line 1903, in run", | ||
" self.func(context, *args, **kwargs)", | ||
" File \"features/steps/test.py\", line 17, in step_impl", | ||
" assert (1 == 2)", | ||
"AssertionError"], | ||
"status": "failed"}, | ||
"step_type": "then"}], | ||
"tags": ["autoretry"], | ||
"type": "scenario"}, | ||
{"keyword": "Scenario", | ||
"location": "features/test.feature:15", | ||
"name": "A failing test with autoretry", | ||
"steps": [{"keyword": "Given", | ||
"location": "features/test.feature:16", | ||
"match": {"arguments": [], | ||
"location": "features/steps/test.py:3"}, | ||
"name": "we have behave installed", | ||
"result": {"duration": 0.00012183189392089844, | ||
"status": "passed"}, | ||
"step_type": "given"}, | ||
{"keyword": "When", | ||
"location": "features/test.feature:17", | ||
"match": {"arguments": [], | ||
"location": "features/steps/test.py:7"}, | ||
"name": "we implement a test", | ||
"result": {"duration": 0.00010704994201660156, | ||
"status": "passed"}, | ||
"step_type": "when"}, | ||
{"keyword": "Then", | ||
"location": "features/test.feature:18", | ||
"match": {"arguments": [], | ||
"location": "features/steps/test.py:15"}, | ||
"name": "behave will fail it for us...sometimes", | ||
"result": {"duration": 0.0002589225769042969, | ||
"status": "passed"}, | ||
"step_type": "then"}], | ||
"tags": ["autoretry"], | ||
"type": "scenario"}], | ||
"keyword": "Feature", | ||
"location": "features/test.feature:1", | ||
"name": "showing off behave", | ||
"status": "failed", | ||
"tags": []}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[{"description": "", | ||
"elements": [{"description": "", | ||
"id": 1, | ||
"keyword": "Scenario", | ||
"line": 15, | ||
"name": "A failing test with autoretry", | ||
"steps": [{"keyword": "Given", | ||
"line": 16, | ||
"match": {"arguments": [], | ||
"location": "features/steps/test.py:3"}, | ||
"name": "we have behave installed", | ||
"result": {"duration": 0.00012183189392089844, | ||
"status": "passed"}}, | ||
{"keyword": "When", | ||
"line": 17, | ||
"match": {"arguments": [], | ||
"location": "features/steps/test.py:7"}, | ||
"name": "we implement a test", | ||
"result": {"duration": 0.00010704994201660156, | ||
"status": "passed"}}, | ||
{"keyword": "Then", | ||
"line": 18, | ||
"match": {"arguments": [], | ||
"location": "features/steps/test.py:15"}, | ||
"name": "behave will fail it for us...sometimes", | ||
"result": {"duration": 0.0002589225769042969, | ||
"status": "passed"}}], | ||
"tags": [{"line": 14, "name": "@autoretry"}], | ||
"type": "scenario", | ||
"uri": "features/test.feature"}], | ||
"id": 0, | ||
"keyword": "Feature", | ||
"line": 1, | ||
"name": "showing off behave", | ||
"tags": [], | ||
"uri": "features/test.feature"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"elements": [{"keyword": "Scenario", "name": "A failing test with autoretry", "steps": [{"keyword": "Given", "match": {"arguments": [], "location": "features/steps/test.py:3"}, "name": "we have behave installed", "result": {"duration": 0.00012183189392089844, "status": "passed"}, "line": 16}, {"keyword": "When", "match": {"arguments": [], "location": "features/steps/test.py:7"}, "name": "we implement a test", "result": {"duration": 0.00010704994201660156, "status": "passed"}, "line": 17}, {"keyword": "Then", "match": {"arguments": [], "location": "features/steps/test.py:15"}, "name": "behave will fail it for us...sometimes", "result": {"duration": 0.0002589225769042969, "status": "failed", "error_message": "['Traceback (most recent call last):', ' File /data/home/london/fprincipato/b2c_fix/lib/python2.6/site-packages/behave/model.py, line 1456, in run', ' match.run(runner.context)', ' File /data/home/london/fprincipato/b2c_fix/lib/python2.6/site-packages/behave/model.py, line 1903, in run', ' self.func(context, *args, **kwargs)', ' File features/steps/test.py, line 17, in step_impl', ' assert (1 == 2)', 'AssertionError']"}, "line": 18}], "tags": [{"name": "@autoretry", "line": 14}], "type": "scenario", "line": 15, "uri": "features/test.feature", "description": "", "id": 1}, {"keyword": "Scenario", "name": "A failing test with autoretry", "steps": [{"keyword": "Given", "match": {"arguments": [], "location": "features/steps/test.py:3"}, "name": "we have behave installed", "result": {"duration": 0.00012183189392089844, "status": "passed"}, "line": 16}, {"keyword": "When", "match": {"arguments": [], "location": "features/steps/test.py:7"}, "name": "we implement a test", "result": {"duration": 0.00010704994201660156, "status": "passed"}, "line": 17}, {"keyword": "Then", "match": {"arguments": [], "location": "features/steps/test.py:15"}, "name": "behave will fail it for us...sometimes", "result": {"duration": 0.0002589225769042969, "status": "failed", "error_message": "['Traceback (most recent call last):', ' File /data/home/london/fprincipato/b2c_fix/lib/python2.6/site-packages/behave/model.py, line 1456, in run', ' match.run(runner.context)', ' File /data/home/london/fprincipato/b2c_fix/lib/python2.6/site-packages/behave/model.py, line 1903, in run', ' self.func(context, *args, **kwargs)', ' File features/steps/test.py, line 17, in step_impl', ' assert (1 == 2)', 'AssertionError']"}, "line": 18}], "tags": [{"name": "@autoretry", "line": 14}], "type": "scenario", "line": 15, "uri": "features/test.feature", "description": "", "id": 2}, {"keyword": "Scenario", "name": "A failing test with autoretry", "steps": [{"keyword": "Given", "match": {"arguments": [], "location": "features/steps/test.py:3"}, "name": "we have behave installed", "result": {"duration": 0.00012183189392089844, "status": "passed"}, "line": 16}, {"keyword": "When", "match": {"arguments": [], "location": "features/steps/test.py:7"}, "name": "we implement a test", "result": {"duration": 0.00010704994201660156, "status": "passed"}, "line": 17}, {"keyword": "Then", "match": {"arguments": [], "location": "features/steps/test.py:15"}, "name": "behave will fail it for us...sometimes", "result": {"duration": 0.0002589225769042969, "status": "passed"}, "line": 18}], "tags": [{"name": "@autoretry", "line": 14}], "type": "scenario", "line": 15, "uri": "features/test.feature", "description": "", "id": 3}], "keyword": "Feature", "name": "showing off behave", "tags": [], "line": 1, "uri": "features/test.feature", "description": "", "id": 0}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters