Tag Archives: cucumber

Presenting at TU-Munich: testing on c++ projects, Thursday, March 26, 2015 7:00 PM

Expecting Thank you to all for a superb heated debate! next week

“no excuses for not testing on c++ projects”

Thursday, March 26, 2015
7:00 PM

details: http://www.meetup.com/MUCplusplus/events/220628575/

If only all test were comprehensible…

SCENARIO("acquiring wisdom") {

  GIVEN("an oracle") { 
    oracle gus;
    
    WHEN("I ask it to speak") {
      auto answer = gus.speak();

      THEN("wisdom is apparent") {
        CHECK( answer != "bla" );
      }
    }
  }
}
[1. Catch]

→ The code can be found @github, including the presentation slides.

want to try out cucumber with c++? try cucumber-cpp+premake

Feature: Cukes simple build
    As a c++ programmer convinced of specification by example
    In order to be able to write Cucumber tests for my projects
    I want to be able to build cucumber-cpp and its prerequisites easily

Scenario: Checking out cucumber-cpp
    Given a c++ developer environment
    And The Boost library is present
    When I write my cucumber steps
    Then I can easily link them to cucumber-cpp libraries

feedback and contributions are welcome.

Current status: build needs some cleanup, but it works: travis-ci badge

To build, either use the generated makefiles or the Visual Studio 2012 solution in the Build directory, or clone and extend the premake script.