Shpinkso / my_cpp_cucumber

A little project playing about with cucumber cpp https://github.com/cucumber/cucumber-cpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cucumber cpp fun

#Environment:

cucumber-cpp

https://github.com/cucumber/cucumber-cpp v0.5

Boost

Tried to install as boost website suggests /usr/local$ sudo tar --bzip2 -xf ./boost_1_71_0.tar.bz2 ---- but just doing that makes cppspec moan that it can't find boost, so tried this and it seems to install a different version but at least it can be found ----- sudo apt-get install cmake libblkid-dev e2fslibs-dev libboost-all-dev libaudit-dev

Gtest

sudo apt-get install libgtest-dev
sudo apt-get install cmake
cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make

copy or symlink libgtest.a and libgtest_main.a to your /usr/lib folder

sudo cp *.a /usr/lib

Cppspec

https://github.com/tpuronen/cppspec v0.5

sudo cmake CMakeLists.txt
sudo make

GMock

do nothing, apparently part of google test anyway

Cucumber-Ruby

sudo apt install ruby-dev
sudo apt install ruby
sudo gem install bundler
cd \<cucumber-cpp clone dir\>
bundle install

Building cucumber-cpp

Download test suite

git submodule init
git submodule update

Create build directory

cmake -E make_directory build

Generate Makefiles

cmake -E chdir build cmake -DCUKE_ENABLE_EXAMPLES=on -DCMAKE_INSTALL_PREFIX=${prefix} ..

Build cucumber-cpp and tests

cmake --build build

Run unit tests

cmake --build build --target test

Run install

sudo cmake --build build --target install

Check implementation against common cucumber test suite

cmake --build build --target features

About

A little project playing about with cucumber cpp https://github.com/cucumber/cucumber-cpp


Languages

Language:Makefile 48.2%Language:CMake 23.0%Language:C++ 16.9%Language:C 10.3%Language:Tcl 1.5%