Skip to content

Commit efecfd0

Browse files
committed
Project rename from CukeBins to Cucumber-Cpp
1 parent f0aa2b2 commit efecfd0

File tree

77 files changed

+325
-322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+325
-322
lines changed

CMakeLists.txt

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
cmake_minimum_required(VERSION 2.8)
22

3-
project(CukeBins)
3+
project(Cucumber-Cpp)
44

55
set(CUKE_USE_STATIC_BOOST ${MSVC} CACHE BOOL "Statically link Boost (except boost::test)")
66
set(CUKE_DISABLE_BOOST_TEST OFF CACHE BOOL "Disable boost:test")
77
set(CUKE_DISABLE_CPPSPEC OFF CACHE BOOL "Disable CppSpec")
88
set(CUKE_DISABLE_GTEST OFF CACHE BOOL "Disable Google Test framework")
9+
set(CUKE_ENABLE_EXAMPLES OFF CACHE BOOL "Enable the examples")
910

1011
enable_testing()
1112

@@ -39,7 +40,7 @@ if(CUKE_USE_STATIC_BOOST)
3940

4041
if(NOT MSVC)
4142
find_package(Threads)
42-
set(CUKEBINS_EXTRA_LIBRARIES ${CUKEBINS_EXTRA_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
43+
set(CUKE_EXTRA_LIBRARIES ${CUKE_EXTRA_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
4344
endif()
4445
else()
4546
set(CUKE_DYNAMIC_BOOST_LIBS ${CUKE_CORE_BOOST_LIBS} ${CUKE_TEST_BOOST_LIBS})
@@ -58,7 +59,7 @@ endif()
5859

5960
if(Boost_FOUND)
6061
include_directories(${Boost_INCLUDE_DIRS})
61-
set(CUKEBINS_EXTRA_LIBRARIES ${CUKEBINS_EXTRA_LIBRARIES} ${Boost_THREAD_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_REGEX_LIBRARY} ${Boost_DATE_TIME_LIBRARY})
62+
set(CUKE_EXTRA_LIBRARIES ${CUKE_EXTRA_LIBRARIES} ${Boost_THREAD_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_REGEX_LIBRARY} ${Boost_DATE_TIME_LIBRARY})
6263
endif()
6364

6465
#
@@ -79,16 +80,18 @@ if(NOT CUKE_DISABLE_GTEST)
7980
endif()
8081

8182
#
82-
# CukeBins
83+
# Cucumber-Cpp
8384
#
8485

85-
set(CUKEBINS_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include)
86+
set(CUKE_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include)
8687

87-
include_directories(${CUKEBINS_INCLUDE_DIRS})
88+
include_directories(${CUKE_INCLUDE_DIRS})
8889

89-
set(CUKEBINS_LIBRARIES CukeBins ${CUKEBINS_EXTRA_LIBRARIES})
90+
set(CUKE_LIBRARIES cucumber-cpp ${CUKE_EXTRA_LIBRARIES})
9091

9192
add_subdirectory(src)
9293
add_subdirectory(tests)
93-
add_subdirectory(examples)
9494

95+
if(CUKE_ENABLE_EXAMPLES)
96+
add_subdirectory(examples)
97+
endif()

README.txt

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
CukeBins allows Cucumber to support step definitions written in C++
1+
Cucumber-Cpp allows Cucumber to support step definitions written in C++
22

33

4-
CukeBins Website: https://github.com./paoloambrosio/cukebins
5-
CukeBins Documentation: https://github.com./paoloambrosio/cukebins/wiki/
4+
Cucumber-Cpp Website: https://github.com./cucumber/cucumber-cpp
5+
Cucumber-Cpp Documentation: https://github.com./cucumber/cucumber-cpp/wiki/
66
Cucumber Website: http://cukes.info/
77

88

@@ -12,19 +12,24 @@ The current library relies on a few libraries:
1212
Required libraries: thread, system, regex, and date_time
1313
Optional library for Boost Test driver: test
1414
* GTest 1.4 or later - http://code.google.com/p/googletest/
15-
Optional for CukeBins test suite and for the GTest driver
15+
Optional for the GTest driver
1616
* CppSpec development branch - https://github.com./tpuronen/cppspec
1717
Optional for the CppSpec driver
18+
* GMock 1.6 or later - http://code.google.com/p/googlemock/
19+
Optional for the internal test suite
1820

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

2123
* JSON Spirit - http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx
2224

25+
It might work with earlier versions of the libraries, but it was not
26+
tested with them.
27+
2328

2429
Building tests and sample application:
2530

2631
cmake -E make_directory build
27-
cmake -E chdir build cmake ..
32+
cmake -E chdir build cmake -DCUKE_ENABLE_EXAMPLES=on ..
2833
cmake --build build
2934
cmake --build build --target test
3035

@@ -37,4 +42,3 @@ Running the example on Windows (NMake):
3742

3843
start build\examples\Calc\CalculatorSteps.exe
3944
cucumber examples\Calc\CalcFeatures
40-

examples/Calc/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
project(Calc)
22

3-
include_directories(${CUKEBINS_INCLUDE_DIRS} Calc)
3+
include_directories(${CUKE_INCLUDE_DIRS} Calc)
44

55
add_library(Calc Calc/Calculator)
66

77
if(GTEST_FOUND)
88
include_directories(${GTEST_INCLUDE_DIRS})
99
add_executable(GTestCalculatorSteps CalcFeatures/GTestCalculatorSteps)
10-
target_link_libraries(GTestCalculatorSteps Calc ${GTEST_LIBRARIES} ${CUKEBINS_LIBRARIES})
10+
target_link_libraries(GTestCalculatorSteps Calc ${GTEST_LIBRARIES} ${CUKE_LIBRARIES})
1111
endif()
1212

1313
if(CPPSPEC_FOUND)
1414
include_directories(${CPPSPEC_INCLUDE_DIRS})
1515
add_executable(CppSpecCalculatorSteps CalcFeatures/CppSpecCalculatorSteps)
16-
target_link_libraries(CppSpecCalculatorSteps Calc ${CPPSPEC_LIBRARY} ${CUKEBINS_LIBRARIES})
16+
target_link_libraries(CppSpecCalculatorSteps Calc ${CPPSPEC_LIBRARY} ${CUKE_LIBRARIES})
1717
endif()
1818

1919
if(Boost_UNIT_TEST_FRAMEWORK_FOUND)
2020
include_directories(${Boost_INCLUDE_DIRS})
2121
add_executable(BoostCalculatorSteps CalcFeatures/BoostCalculatorSteps)
22-
target_link_libraries(BoostCalculatorSteps Calc ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ${CUKEBINS_LIBRARIES})
22+
target_link_libraries(BoostCalculatorSteps Calc ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ${CUKE_LIBRARIES})
2323
endif()

examples/Calc/CalcFeatures/BoostCalculatorSteps.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <boost/test/unit_test.hpp>
2-
#include <cukebins/wireserver.hpp>
2+
#include <cucumber-cpp/core.hpp>
33

44
#include <Calculator.h>
55

examples/Calc/CalcFeatures/CppSpecCalculatorSteps.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <CppSpec/CppSpec.h>
2-
#include <cukebins/wireserver.hpp>
2+
#include <cucumber-cpp/core.hpp>
33

44
#include <Calculator.h>
55

examples/Calc/CalcFeatures/GTestCalculatorSteps.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <gtest/gtest.h>
2-
#include <cukebins/wireserver.hpp>
2+
#include <cucumber-cpp/core.hpp>
33

44
#include <Calculator.h>
55

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
project(FeatureShowcase)
22

3-
include_directories(${CUKEBINS_INCLUDE_DIRS})
3+
include_directories(${CUKE_INCLUDE_DIRS})
44

55
if(GTEST_FOUND)
66
include_directories(${GTEST_INCLUDE_DIRS})
77

88
add_executable(TagSteps tag/TagSteps)
9-
target_link_libraries(TagSteps ${GTEST_LIBRARIES} ${CUKEBINS_LIBRARIES})
9+
target_link_libraries(TagSteps ${GTEST_LIBRARIES} ${CUKE_LIBRARIES})
1010

1111
add_executable(TableSteps table/TableSteps)
12-
target_link_libraries(TableSteps ${GTEST_LIBRARIES} ${CUKEBINS_LIBRARIES})
12+
target_link_libraries(TableSteps ${GTEST_LIBRARIES} ${CUKE_LIBRARIES})
1313
endif()
1414

examples/FeatureShowcase/table/TableSteps.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <gtest/gtest.h>
2-
#include <cukebins/wireserver.hpp>
2+
#include <cucumber-cpp/core.hpp>
33

44
#include <string>
55
#include <map>
@@ -43,7 +43,7 @@ GIVEN("^the following actors are still active") {
4343
for (table_hashes_type::const_iterator ait = actors.begin(); ait != actors.end(); ++ait) {
4444
std::string name(ait->at("name"));
4545
std::string yearString(ait->at("born"));
46-
const ActiveActors::actor_year_type year = ::cukebins::internal::fromString<ActiveActors::actor_year_type>(yearString);
46+
const ActiveActors::actor_year_type year = ::cuke::internal::fromString<ActiveActors::actor_year_type>(yearString);
4747
context->addActor(name, year);
4848
}
4949
}

examples/FeatureShowcase/tag/TagSteps.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <gtest/gtest.h>
2-
#include <cukebins/wireserver.hpp>
2+
#include <cucumber-cpp/core.hpp>
33

44
#include <iostream>
55
using namespace std;
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef CUKEBINS_HPP_
2-
#define CUKEBINS_HPP_
1+
#ifndef CUKE_CORE_HPP_
2+
#define CUKE_CORE_HPP_
33

44
#include "internal/step/StepManager.hpp"
55
#include "internal/hook/HookRegistrar.hpp"
@@ -9,4 +9,4 @@
99
#include "internal/Macros.hpp"
1010
#include "internal/drivers/DriverSelector.hpp"
1111

12-
#endif /* CUKEBINS_HPP_ */
12+
#endif /* CUKE_CORE_HPP_ */

include/cukebins/internal/ContextManager.hpp renamed to include/cucumber-cpp/internal/ContextManager.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#ifndef CUKEBINS_CONTEXTMANAGER_HPP_
2-
#define CUKEBINS_CONTEXTMANAGER_HPP_
1+
#ifndef CUKE_CONTEXTMANAGER_HPP_
2+
#define CUKE_CONTEXTMANAGER_HPP_
33

44
#include <vector>
55

66
#include <boost/shared_ptr.hpp>
77
#include <boost/weak_ptr.hpp>
88

9-
namespace cukebins {
9+
namespace cuke {
1010
namespace internal {
1111

1212
using boost::shared_ptr;
@@ -69,4 +69,4 @@ T* SessionContextPtr<T>::operator->() {
6969
}
7070
}
7171

72-
#endif /* CUKEBINS_CONTEXTMANAGER_HPP_ */
72+
#endif /* CUKE_CONTEXTMANAGER_HPP_ */

include/cukebins/internal/CukeCommands.hpp renamed to include/cucumber-cpp/internal/CukeCommands.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef CUKEBINS_CUKECOMMANDS_HPP_
2-
#define CUKEBINS_CUKECOMMANDS_HPP_
1+
#ifndef CUKE_CUKECOMMANDS_HPP_
2+
#define CUKE_CUKECOMMANDS_HPP_
33

44
#include "ContextManager.hpp"
55
#include "Scenario.hpp"
@@ -13,7 +13,7 @@
1313

1414
#include <boost/shared_ptr.hpp>
1515

16-
namespace cukebins {
16+
namespace cuke {
1717
namespace internal {
1818

1919
using boost::shared_ptr;
@@ -41,4 +41,4 @@ class CukeCommands {
4141
}
4242
}
4343

44-
#endif /* CUKEBINS_CUKECOMMANDS_HPP_ */
44+
#endif /* CUKE_CUKECOMMANDS_HPP_ */

include/cukebins/internal/CukeEngine.hpp renamed to include/cucumber-cpp/internal/CukeEngine.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#ifndef CUKEBINS_CUKEENGINE_HPP_
2-
#define CUKEBINS_CUKEENGINE_HPP_
1+
#ifndef CUKE_CUKEENGINE_HPP_
2+
#define CUKE_CUKEENGINE_HPP_
33

44
#include <string>
55
#include <vector>
66

77
#include <boost/multi_array.hpp>
88

9-
namespace cukebins {
9+
namespace cuke {
1010
namespace internal {
1111

1212
class StepMatchArg {
@@ -101,4 +101,4 @@ class CukeEngine {
101101
}
102102
}
103103

104-
#endif /* CUKEBINS_CUKEENGINE_HPP_ */
104+
#endif /* CUKE_CUKEENGINE_HPP_ */

include/cukebins/internal/CukeEngineImpl.hpp renamed to include/cucumber-cpp/internal/CukeEngineImpl.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#ifndef CUKEBINS_CUKEENGINE_IMPL_HPP_
2-
#define CUKEBINS_CUKEENGINE_IMPL_HPP_
1+
#ifndef CUKE_CUKEENGINE_IMPL_HPP_
2+
#define CUKE_CUKEENGINE_IMPL_HPP_
33

44
#include "CukeEngine.hpp"
55
#include "CukeCommands.hpp"
66

7-
namespace cukebins {
7+
namespace cuke {
88
namespace internal {
99

1010
/**
@@ -28,4 +28,4 @@ class CukeEngineImpl : public CukeEngine {
2828
}
2929
}
3030

31-
#endif /* CUKEBINS_CUKEENGINE_IMPL_HPP_ */
31+
#endif /* CUKE_CUKEENGINE_IMPL_HPP_ */
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#ifndef CUKEBINS_MACROS_HPP_
2-
#define CUKEBINS_MACROS_HPP_
1+
#ifndef CUKE_MACROS_HPP_
2+
#define CUKE_MACROS_HPP_
33

44
#include "RegistrationMacros.hpp"
55
#include "step/StepMacros.hpp"
66
#include "hook/HookMacros.hpp"
77

8-
#endif /* CUKEBINS_MACROS_HPP_ */
8+
#endif /* CUKE_MACROS_HPP_ */

include/cukebins/internal/RegistrationMacros.hpp renamed to include/cucumber-cpp/internal/RegistrationMacros.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef CUKEBINS_REGISTRATIONMACROS_HPP_
2-
#define CUKEBINS_REGISTRATIONMACROS_HPP_
1+
#ifndef CUKE_REGISTRATIONMACROS_HPP_
2+
#define CUKE_REGISTRATIONMACROS_HPP_
33

44
// ************************************************************************** //
55
// ************** OBJECT NAMING MACROS ************** //
@@ -12,7 +12,7 @@
1212
#ifdef __COUNTER__
1313
#define CUKE_GEN_OBJECT_NAME_ BOOST_JOIN(CUKE_OBJECT_PREFIX, __COUNTER__)
1414
#else
15-
// Use a counter to be incremented every time cukebins is included
15+
// Use a counter to be incremented every time cucumber-cpp is included
1616
// in case this does not suffice (possible with multiple files only)
1717
#define CUKE_GEN_OBJECT_NAME_ BOOST_JOIN(CUKE_OBJECT_PREFIX, __LINE__)
1818
#endif
@@ -32,4 +32,4 @@ const int class_name ::cukeRegId = registration_fn ; \
3232
void class_name ::body() \
3333
/**/
3434

35-
#endif /* CUKEBINS_REGISTRATIONMACROS_HPP_ */
35+
#endif /* CUKE_REGISTRATIONMACROS_HPP_ */

include/cukebins/internal/Scenario.hpp renamed to include/cucumber-cpp/internal/Scenario.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#ifndef CUKEBINS_SCENARIO_HPP_
2-
#define CUKEBINS_SCENARIO_HPP_
1+
#ifndef CUKE_SCENARIO_HPP_
2+
#define CUKE_SCENARIO_HPP_
33

44
#include "hook/Tag.hpp"
55

6-
namespace cukebins {
6+
namespace cuke {
77
namespace internal {
88

99
class Scenario {
@@ -18,4 +18,4 @@ class Scenario {
1818
}
1919
}
2020

21-
#endif /* CUKEBINS_SCENARIO_HPP_ */
21+
#endif /* CUKE_SCENARIO_HPP_ */

include/cukebins/internal/Table.hpp renamed to include/cucumber-cpp/internal/Table.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#ifndef CUKEBINS_TABLE_HPP_
2-
#define CUKEBINS_TABLE_HPP_
1+
#ifndef CUKE_TABLE_HPP_
2+
#define CUKE_TABLE_HPP_
33

44
#include <vector>
55
#include <map>
66
#include <string>
77
#include <stdexcept>
88

9-
namespace cukebins {
9+
namespace cuke {
1010
namespace internal {
1111

1212
class Table {
@@ -32,4 +32,4 @@ class Table {
3232
}
3333
}
3434

35-
#endif /* CUKEBINS_TABLE_HPP_ */
35+
#endif /* CUKE_TABLE_HPP_ */

include/cukebins/internal/connectors/wire/ProtocolHandler.hpp renamed to include/cucumber-cpp/internal/connectors/wire/ProtocolHandler.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#ifndef CUKEBINS_PROTOCOLHANDLER_HPP_
2-
#define CUKEBINS_PROTOCOLHANDLER_HPP_
1+
#ifndef CUKE_PROTOCOLHANDLER_HPP_
2+
#define CUKE_PROTOCOLHANDLER_HPP_
33

44
#include <string>
55

6-
namespace cukebins {
6+
namespace cuke {
77
namespace internal {
88

99
/**
@@ -18,4 +18,4 @@ class ProtocolHandler {
1818
}
1919
}
2020

21-
#endif /* CUKEBINS_PROTOCOLHANDLER_HPP_ */
21+
#endif /* CUKE_PROTOCOLHANDLER_HPP_ */

0 commit comments

Comments
 (0)