Skip to content

Testing workflow

DC* edited this page Nov 17, 2017 · 6 revisions

We use cram for functional-like testing. This ensures we won't unexpectedly introduce bugs or generate regressions.

Our tests run in Travis for every Pull Request.

Requirements

For running tests on Docker you'll need Docker installed. Check Docker installation instructions.

For running tests on local install Python and pip:

apt-get install python-pip
# dnf install python-pip

# install cram
pip install cram==0.6.*

Running tests

When developing new features or fixing bugs your most common workflow would be:

make tests

You can use a filewatcher to streamline your work.

You may as well run a specific test:

make tests TEST=/antigen/tests/cache.t

Also with an specific ZSH version:

make tests ZSH_VERSION=zsh-5.0.0 TEST=/antigen/tests/cache.t