jRuby Version Gem Version Codeship Status for julianghionoiu/tdl-client-ruby Coverage Status

tdl-client-ruby

Submodules

Project contains submodules as mentioned in the .gitmodules file:

  • broker
  • tdl/client-spec (gets cloned into features/spec)
  • wiremock

Use the below command to update the submodules of the project:

git submodule update --init

Getting started

Ruby client to connect to the central kata server.

Installing

Install RVM

curl -sSL https://get.rvm.io | bash -s stable
echo "source $HOME/.rvm/scripts/rvm" >> .bash_profile

Install ruby

rvm install ruby-2.2.2
rvm use ruby-2.2.2

Install bundler

gem install bundler

Install coveralls

gem install coveralls

Install cucumber

gem install cucumber

Install all the gems in the project

bundle install

Manual

Stopping the wiremocks and broker services would be the same, using the stop command instead of the start command.

Automatic (via script)

Start and stop the wiremocks and broker services with the below:

./startExternalDependencies.sh
./stopExternalDependencies.sh

Testing

All test require the ActiveMQ broker to be started. The following commands are available for the broker.

python ./broker/activemq-wrapper.py start
python wiremock/wiremock-wrapper.py start 41375
python wiremock/wiremock-wrapper.py start 8222

or

./startExternalDependencies.sh

Run tests with rake features. To run a single scenario execute cucumber path/to/file.feature:line_no Recommendation is to use the cucumber command instead of rake always outside of CI.

Cleanup

Stop external dependencies

python ./broker/activemq-wrapper.py stop
python wiremock/wiremock-wrapper.py stop 41375
python wiremock/wiremock-wrapper.py stop 8222

or

./stopExternalDependencies.sh

To release

Run

./release.sh