Closed konserw closed 6 years ago
Can you also add a test (perhaps in tests/integration/drivers
) that fails without this change and succeeds with it?
Gladly, but I'm not sure how
@muggenhor - could you take a look at the test I've added? I'm not good with ruby... Also maybe we should rethink how the "support code" is inserted to every feature with C++ code?
@muggenhor how do you like it now? I kinda changed it other way around...
I've pasted wrong link twice. For failing test see this one: https://travis-ci.org/konserw/cucumber-cpp/jobs/268053073
I've created new feature file based on @paoloambrosio suggestions - now it contains more boost's macros. Now I've also rebased against newest master.
Build is failing due to #169
After adding the other scenarios, there is again some duplication. I've tried experimenting with a single ScenarioOutline
with all the examples, and I think it would be very readable:
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 |
What do you think?
Looks good - I've commited this change.
All green - I just had to rebase on top of master after change in travis scripts. I'll merge now.
Summary
Intercept messages from BOOST_*_MESSAGE macros
Details
Motivation and Context
Fixes #81
How Has This Been Tested?
It has been tested manually by adding following line to BoostCalc example and running that example:
BOOST_CHECK_MESSAGE(false, "Message");
Types of changes
Checklist: