We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This section highlights the changes in the development branch.
The project has been renamed to Cucumber-Cpp. The library to be linked is now ‘cucumber-cpp’ and the include for each step definition file is
#include <cucumber-cpp/defs.hpp>
instead of
#include <cukebins/wireserver.hpp>
The macro USING_CONTEXT has been superseded by the template class ScenarioScope. There are two ways to migrate the following code:
#include <cucumber-cpp/defs.hpp> WHEN("...") { USING_CONTEXT(MyClass, myName); ... }
WHEN("...") { USING_CONTEXT(MyClass, myName); ... }
The best one is to use the new ScenarioScope template class:
#include <cucumber-cpp/defs.hpp> using cucumber::ScenarioScope; WHEN("...") { ScenarioScope<MyClass> myName; ... }
using cucumber::ScenarioScope;
WHEN("...") { ScenarioScope<MyClass> myName; ... }
The easier (but discouraged) one is to include the deprecated definitions:
#include <cucumber-cpp/defs.hpp> #include <cucumber-cpp/deprecated-defs.hpp> WHEN("...") { USING_CONTEXT(MyClass, myName); ... }
#include <cucumber-cpp/defs.hpp> #include <cucumber-cpp/deprecated-defs.hpp>