-
python 3.8+
-
pipenv
-
redis
-
N.B Redis is the default message broker, however RabbitMQ is also supported.
The stests library is bundled with an installer which can be invoked in a single command:
curl https://raw.githubusercontent.com/CasperLabs/stests/master/installer | bash
The installer detects the user's OS and installs the following:
-
GitHub repo:
- installed ->
$HOME/casperlabs/stests
- contains source code + associated bash scripts
- installed ->
-
environment variables:
- installed ->
$HOME/.casperlabs-stests/vars
- permits user to override various stests settings
- installed ->
-
worker daemon config:
- installed ->
$HOME/.casperlabs-stests/ops/config/supervisord.conf
- controls number of processes allocated to stests daemon processes
- installed ->
-
shell activator:
- appended to end of
$HOME/.bashrc
|$HOME/.bash_profile
- ensures that stests commands are available within terminal sessions
- appended to end of
-
virtual environment:
- installed using pipenv (see pre-requisites)
To update to the latest version of stests simply execute the stests-stack-update
command from within a terminal session. The updater does the following:
-
GitHub repo:
- pulls latests changes.
-
environment variables:
- backs up existing settings ->
$HOME/.casperlabs-stests/vars-YYYY-MM-DD
- installs new settings ->
$HOME/.casperlabs-stests/vars
- backs up existing settings ->
-
virtual environment:
- updates environment to use latest dependencies