Monday, 16 May 2016

Cucumber :

As per Wikipedia Cucumber is defined as follows :

Cucumber is a software tool that computer programmers use for testing other software. It runs automated acceptance tests written in a behavior-driven development (BDD) style. Cucumber is written in the Ruby programming language. Cucumber projects are available for other platforms beyond Ruby. Some use Ruby Cucumber with a bridge into the target language (e.g. cuke4php and cuke4lua). Others use the Gherkin parser but implement everything else in the target language. Cucumber allows the execution of feature documentation written in business-facing text. Capybara, which is a part of the Cucumber testing framework, is an example of a web based test automation software.

We will be dealing with practical implementation of cucumber for C++ code under Linux Environment.
You need to download the Cucumber first on your Linux system. Install using apt-get as follows :
$ sudo apt-get install cucumber

You need to have following prerequisite  :
  • Boost 1.40 or later. Required libraries: threadsystemregexdate_time and program_options. Optional library for Boost Test driver: test.
  • GTest 1.6 or later. Optional for the GTest driver. By default downloaded and built by CMake.
  • CppSpec development branch. Optional for the CppSpec driver.
  • GMock 1.6 or later. Optional for the internal test suite. By default downloaded and built by CMake.
  • Qt 4 or 5. Optional for the CalcQt example.
Installing Boost libraries :
$ sudo apt-get install libboost-all-dev

Installing Gtest on linux:
Download Gtest from following git repository :
GTest Repository (See different downloading options on page)
Extract the downloaded file and go to googletest-master folder (if downloaded zip file) and execute following commands :
$ cmake CMakeLists.txt
$ make all
$ sudo make install


Installing CppSpec on linux:
  • Download repository from CppSpec.
  • Extract the directory and change to cppspec-master
Type following command :
$ cmake CMakeLists.txt
$ make all
$ sudo make install


to be continued ....












0 comments:

Post a Comment

Blogroll

Copyright © 2013 RAJ PRAJAPATI (raj@electronicsrj.com)

Comments

About Projects

We also Provide support in making Electronics Projects at different level at Cheapest price. Contact Us for the further help.