Skip to content

Support for writing Cucumber step definitions in C++

License

Notifications You must be signed in to change notification settings

hlounent/cucumber-cpp

This branch is 444 commits behind cucumber/cucumber-cpp:main.

Folders and files

NameName
Last commit message
Last commit date
Jun 4, 2013
Nov 2, 2013
Aug 21, 2013
Nov 7, 2013
Nov 17, 2013
Dec 21, 2013
Oct 13, 2013
Jun 23, 2013
Nov 5, 2013
Nov 17, 2013
Apr 9, 2013
Oct 30, 2013
Dec 22, 2013
May 3, 2010
Jun 22, 2013

Repository files navigation

Cucumber-CPP

Build Status

Cucumber-Cpp allows Cucumber to support step definitions written in C++.

If you need to ask a question, don't open a ticket on GitHub! Please post your question on the Cucumber discussion group instead, prefixing the title with [CPP].

It relies on a few libraries:

  • Boost 1.40 or later. Required libraries: thread, system, regex, and date_time. Optional library for Boost Test driver: test.
  • GTest 1.4 or later. Optional for the GTest driver.
  • CppSpec development branch. Optional for the CppSpec driver.
  • GMock 1.6 or later. Optional for the internal test suite.
  • Qt 4. Optional for the CalcQt example.

This header-only library is included in the source code:

It might work with earlier versions of the libraries, but it was not tested with them.

Cucumber-Cpp uses the wire protocol at the moment, so you will need Cucumber-Ruby installed and available on the path. It is also needed to run the functional test suite.

Building Cucumber-Cpp with tests and samples:

cmake -E make_directory build
cmake -E chdir build cmake -DCUKE_ENABLE_EXAMPLES=on ..
cmake --build build
cmake --build build --target test
cmake --build build --target features

Running the Calc example on Unix:

build/examples/Calc/BoostCalculatorSteps >/dev/null &
cucumber examples/Calc

Running the Calc example on Windows (NMake):

start build\examples\Calc\BoostCalculatorSteps.exe
cucumber examples\Calc

About

Support for writing Cucumber step definitions in C++

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 95.8%
  • Ruby 4.0%
  • C 0.2%