Skip to content

Testing pure for dummies

Édouard Lopez edited this page Jan 30, 2019 · 6 revisions

Design Principles

Tests are run in a Docker image based on the one from [oh-my-fish](https://github.com/oh-my-fish/docker files), where we specify the fish version to use. Then, we install 'fishtape' and run the tests suite with it. For details refer to tools/pure-on-fish.Dockerfile

Usage

You can also use the container locally thanks to the makefile.

Build

First build the required image

make build-on-pure FISH_VERSION=2.7.1
Test
make test-on-pure FISH_VERSION=2.7.1

You can have a look at the .travis.yml to see how you can specify a fish version

The strategy was to test every file/method we have

Clone this wiki locally