forked from TechnologyBrewery/habushu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TechnologyBrewery#119 Point Behave test suite to new formatter, kappa…
…-maki, to address malgenerated test reports
- Loading branch information
1 parent
1719665
commit 79020ec
Showing
5 changed files
with
36 additions
and
6 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
9 changes: 9 additions & 0 deletions
9
habushu-mixology-consumer/tests/features/generate-report-with-manual-tests.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,9 @@ | ||
@manual | ||
Feature: Given a Python module with at least one automated test and one or more manual tests, I should be able to view | ||
an HTML report of the Behave tests | ||
|
||
Scenario: Generate reports with manual tests present | ||
Given a Python module with at least one automated test and at least one manual test | ||
When I build the python module | ||
Then my build should succeed | ||
And I should be able to see a HTML report of the tests in the target directory |
21 changes: 21 additions & 0 deletions
21
habushu-mixology-consumer/tests/features/steps/generate-report-with-manual-tests.py
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,21 @@ | ||
from behave import * | ||
|
||
|
||
@given("a Python module with at least one automated test and at least one manual test") | ||
def step_impl(context): | ||
return | ||
|
||
|
||
@when("I build the python module") | ||
def step_impl(context): | ||
return | ||
|
||
|
||
@then("my build should succeed") | ||
def step_impl(context): | ||
return | ||
|
||
|
||
@then("I should be able to see a HTML report of the tests in the target directory") | ||
def step_impl(context): | ||
return |
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