Skip to content

Testrunner

Tommie McAfee edited this page Mar 22, 2017 · 1 revision

Testrunner workflow

Sequoia can be used to quickly spin up a clean set of containers for use with testrunner.

Prior to running this be sure to check out the testrunner submodule:

git submodule update --init --recursive

Now we can quickly run any test by passing the 'testrunner' arg to sequoia:

./sequoia testrunner -command \
    "-i b/resources/4-nodes-template.ini -c conf/simple.conf"

You can run this command as many times as you want and each time new containers will start.

Debugging Testrunner

If instead you wanted to manually run a testrunner test, simply provide the --exec option and you will have a debeugging environment to run your tests:

./sequoia testrunner \
   -command "-i b/resources/4-nodes-template.ini -c conf/simple.conf" \
   --exec

Build new image

To build a new testrunner image, run in exec mode, then do a commit + tag + push

./sequoia testrunner \
   -command "-i b/resources/4-nodes-template.ini -c conf/simple.conf" \
   --exec
git pull
docker commit 780ccd0e22ed   # returns sha256:12e341ff1
docker tag 12e341ff1 sequoiatools/testrunner
docker push sequoiatools/testrunner

Clone this wiki locally