'Sanda Aitonean' via Cukes
2014-09-23 18:02:36 UTC
Hello,
I am new to the BDD world, want to try-out Cucumber-cpp in an Windows 7
environment, but donât know how to proceed after having built its sources
(how to get to the server needed to be launched in order to run the example
features)
I followed instructions from
http://infowarestudios.co.za/agile-testing-getting-agile-tests-incorporated-into-your-sprints-using-bdd-and-cucumber-in-c/,
but not all worked exactly as described there.
I understand that: in order to use Cucumber-cpp, first I need to
install/build its prerequisites, then build the Cucumber-Cpp sources to a
library, and ultimately create my step definition files (C++) and build
them against the Cucumber-cpp library. In order to run my feature files, I
should be starting a server (is this an executable resulting from the build
of Cucumber-cpp sources, or is it something I should be creating myself?)
that âtalksâ to the ruby implementation of Cucumber, allowing it to
interpret C++ written steps. (Hope there is some true in the above.)
Hereâs what I did for the setup so far:
1. Install *Ruby on Windows* and the *Cucumber gem*:
- rubyinstaller-1.9.3-p545.exe from http://rubyinstaller.org/
- cucumber gem 1.3.16 and its dependencies âhad to install them
manually (âgem install cucumberâ command fails â proxy/firewall prevents
downloads) from *http <http://rubygems.org/gems/cucumber>://
<http://rubygems.org/gems/cucumber>rubygems.org/gems/cucumber
<http://rubygems.org/gems/cucumber>*. Note: installation of the gherkin gem
(dependency) required to install DevKit:
DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe, *https://
<https://github.com/oneclick/rubyinstaller/wiki/Development-Kit>github.com/oneclick/rubyinstaller/wiki/Development-Kit
<https://github.com/oneclick/rubyinstaller/wiki/Development-Kit>*
1. Get *Cucumber-cpp sources* to c:\Cucumber\cucumber-cpp, from
https://github.com/cucumber/cucumber-cppn(cucumber-cpp-master.zip,
latest commit 515e398047)
2. Build* Boost *sources, version 1.55.0, from http://www.boost.org/
*c:\Boost\boost_1_55_0>bootstrap.bat*
* c:\Boost\boost_1_55_0>.\b2 --prefix=C:\Boost
--build-type=complete address-model=32 install*
4. Install *Cmake,* cmake-2.8.12.2-win32-x86.exe from *http://www.cmake.org/cmake/resources/software.html
<http://www.cmake.org/cmake/resources/software.html>*
5. Obtain a solution file (.sln) for the *cucumber-Cpp* library
and example
*cd c:\Cucumber\cucumber-cpp cmake -E make_directory vsprj*
* c:\Cucumber\cucumber-cpp>cmake -E chdir vsprj cmake -G
"Visual Studio 11" -DCUKE_ENABLE_EXAMPLES=on -DBOOST_ROOT=c:\Boost . ..*
6. Build Cucumber-cpp.sln with VisualStudio 2012, after solving some
build errors, e.g. 'cannot open include file boost\shared_ptr.hpp' - had to
add to the include folders C:\Boost\include\boost-1_55
In order to run the features in the âCalculatorâ example, I am supposed to
start a server which I donât have (there is no BoostCalculatorSteps.exe in
folder vsprj\examples\Calc\Debug).
I read at
https://github.com/cucumber/cucumber-cpp/wiki/Primer#compiling-and-running that
I would need to configure the wire protocol; where would I have to do that
in order to run the Calculator example, and how does that relate to the
BoostCalculatorSteps.exe?
I would appreciate any help, thanks in advance,
Sanda
I am new to the BDD world, want to try-out Cucumber-cpp in an Windows 7
environment, but donât know how to proceed after having built its sources
(how to get to the server needed to be launched in order to run the example
features)
I followed instructions from
http://infowarestudios.co.za/agile-testing-getting-agile-tests-incorporated-into-your-sprints-using-bdd-and-cucumber-in-c/,
but not all worked exactly as described there.
I understand that: in order to use Cucumber-cpp, first I need to
install/build its prerequisites, then build the Cucumber-Cpp sources to a
library, and ultimately create my step definition files (C++) and build
them against the Cucumber-cpp library. In order to run my feature files, I
should be starting a server (is this an executable resulting from the build
of Cucumber-cpp sources, or is it something I should be creating myself?)
that âtalksâ to the ruby implementation of Cucumber, allowing it to
interpret C++ written steps. (Hope there is some true in the above.)
Hereâs what I did for the setup so far:
1. Install *Ruby on Windows* and the *Cucumber gem*:
- rubyinstaller-1.9.3-p545.exe from http://rubyinstaller.org/
- cucumber gem 1.3.16 and its dependencies âhad to install them
manually (âgem install cucumberâ command fails â proxy/firewall prevents
downloads) from *http <http://rubygems.org/gems/cucumber>://
<http://rubygems.org/gems/cucumber>rubygems.org/gems/cucumber
<http://rubygems.org/gems/cucumber>*. Note: installation of the gherkin gem
(dependency) required to install DevKit:
DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe, *https://
<https://github.com/oneclick/rubyinstaller/wiki/Development-Kit>github.com/oneclick/rubyinstaller/wiki/Development-Kit
<https://github.com/oneclick/rubyinstaller/wiki/Development-Kit>*
1. Get *Cucumber-cpp sources* to c:\Cucumber\cucumber-cpp, from
https://github.com/cucumber/cucumber-cppn(cucumber-cpp-master.zip,
latest commit 515e398047)
2. Build* Boost *sources, version 1.55.0, from http://www.boost.org/
*c:\Boost\boost_1_55_0>bootstrap.bat*
* c:\Boost\boost_1_55_0>.\b2 --prefix=C:\Boost
--build-type=complete address-model=32 install*
4. Install *Cmake,* cmake-2.8.12.2-win32-x86.exe from *http://www.cmake.org/cmake/resources/software.html
<http://www.cmake.org/cmake/resources/software.html>*
5. Obtain a solution file (.sln) for the *cucumber-Cpp* library
and example
*cd c:\Cucumber\cucumber-cpp cmake -E make_directory vsprj*
* c:\Cucumber\cucumber-cpp>cmake -E chdir vsprj cmake -G
"Visual Studio 11" -DCUKE_ENABLE_EXAMPLES=on -DBOOST_ROOT=c:\Boost . ..*
6. Build Cucumber-cpp.sln with VisualStudio 2012, after solving some
build errors, e.g. 'cannot open include file boost\shared_ptr.hpp' - had to
add to the include folders C:\Boost\include\boost-1_55
In order to run the features in the âCalculatorâ example, I am supposed to
start a server which I donât have (there is no BoostCalculatorSteps.exe in
folder vsprj\examples\Calc\Debug).
I read at
https://github.com/cucumber/cucumber-cpp/wiki/Primer#compiling-and-running that
I would need to configure the wire protocol; where would I have to do that
in order to run the Calculator example, and how does that relate to the
BoostCalculatorSteps.exe?
I would appreciate any help, thanks in advance,
Sanda
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.