Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 953 Bytes

TESTING.md

File metadata and controls

46 lines (27 loc) · 953 Bytes

Installation

Install all needed gems to run the tests:

bundle update

Run Tests

Run the tests:

bundle exec rake

Linux Testing

To perform Linux testing, for example when Travis fails, use docker to create run Linux locally:

docker pull ruby

From the directory containing the source code run the following docker command:

docker run -it --rm --volume `pwd`:/src ruby bash 

Docker should open a shell into which the following commands can be run:

cd /src
gem install bundler
bundle update
rake

Older Linux Testing

To test using an older Alpine Linux distribution

docker pull 2.3-alpine3.7

From the directory containing the source code run the following docker command:

docker run -it --rm --volume `pwd`:/src 2.3-alpine3.7 sh 

Docker should open a shell into which the following commands can be run:

apk add alpine-sdk
cd /src
gem install bundler
bundle update
rake