forked from cucumber/cucumber-cpp
-
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.
Merge cucumber#164 'Intercept messages from BOOST_*_MESSAGE macros'
- Loading branch information
Showing
7 changed files
with
68 additions
and
8 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,34 @@ | ||
@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>; | ||
} | ||
""" | ||
When Cucumber runs the feature | ||
Then the scenario <passes or fails?> | ||
|
||
Examples: | ||
| check | passes or fails? | | ||
| BOOST_CHECK(false) | fails | | ||
| BOOST_CHECK_MESSAGE(false, "boost message") | fails with message "boost message" | | ||
| BOOST_ERROR("boost message") | fails with message "boost message" | | ||
| BOOST_FAIL("boost message") | fails with message "boost message" | | ||
| BOOST_REQUIRE(false) | fails | | ||
| BOOST_REQUIRE_MESSAGE(false, "boost message") | fails with message "boost message" | | ||
| BOOST_WARN(false) | passes | | ||
| BOOST_WARN_MESSAGE(false, "boost message") | passes | |
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
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