-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
85 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
@boost | ||
Feature: Check macros used with boost test driver | ||
|
||
This is just a simple feature meant to test boost's | ||
specyfic validation macros interop with cucumber. | ||
|
||
Scenario Outline: <check> macro | ||
Given the following feature: | ||
""" | ||
Feature: Feature name | ||
Scenario: Scenario name | ||
Given a step | ||
""" | ||
And a step definition file with: | ||
""" | ||
#include <boost/test/unit_test.hpp> | ||
#include <cucumber-cpp/autodetect.hpp> | ||
GIVEN("a step") { | ||
<check>(false); | ||
} | ||
""" | ||
When Cucumber runs the feature | ||
Then the scenario <passes or fails?> | ||
|
||
Examples: | ||
| check | passes or fails? | | ||
| BOOST_WARN | passes | | ||
| BOOST_CHECK | fails | | ||
| BOOST_REQUIRE | fails | | ||
|
||
|
||
Scenario Outline: <check> macro | ||
Given the following feature: | ||
""" | ||
Feature: Feature name | ||
Scenario: Scenario name | ||
Given a step | ||
""" | ||
And a step definition file with: | ||
""" | ||
#include <boost/test/unit_test.hpp> | ||
#include <cucumber-cpp/autodetect.hpp> | ||
GIVEN("a step") { | ||
<check>(false, "boost message"); | ||
} | ||
""" | ||
When Cucumber runs the feature | ||
Then the scenario <passes or fails?> | ||
|
||
Examples: | ||
| check | passes or fails? | | ||
| BOOST_WARN_MESSAGE | passes | | ||
| BOOST_CHECK_MESSAGE | fails with message "boost message" | | ||
| BOOST_REQUIRE_MESSAGE | fails with message "boost message" | | ||
|
||
|
||
Scenario Outline: <check> macro | ||
Given the following feature: | ||
""" | ||
Feature: Feature name | ||
Scenario: Scenario name | ||
Given a step | ||
""" | ||
And a step definition file with: | ||
""" | ||
#include <boost/test/unit_test.hpp> | ||
#include <cucumber-cpp/autodetect.hpp> | ||
GIVEN("a step") { | ||
<check>("boost message"); | ||
} | ||
""" | ||
When Cucumber runs the feature | ||
Then the scenario <passes or fails?> | ||
|
||
Examples: | ||
| check | passes or fails? | | ||
| BOOST_ERROR | fails with message "boost message" | | ||
| BOOST_FAIL | fails with message "boost message" | | ||
|
This file was deleted.
Oops, something went wrong.
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