-
Notifications
You must be signed in to change notification settings - Fork 17
Local testing with environs on local machine
Prerequisites: You need to have mirrorbrain development environment set up: https://mirrorbrain.org/docs/installation/source/ . Alternatively, use installation script, with which environs sets up docker container: https://github.com/andrii-suse/environs/blob/master/.product/mb/branch/.install_dependencies.sh
The environs test scripts have shebang, which sets up docker container, so the commands will be executed inside docker container. But it is possible to execute the same commands directly with environs framework, e.g. commands below should give an inspiration:
git clone https://github.com/openSUSE/mirrorbrain git clone https://github.com/andrii-suse/environs cd environs ln -s $(pwd)/../mirrorbrain mirrorrain REBUILD=1 bash -x mirrorbrain/t/docker/environs/01-smoke.sh
Notes:
- Environs are special folders with pre-generated scripts to simplify and unify integration testing.
- Test scripts theoretically may be re-executed again to demonstrate repeatable behavior. But current tests need REBUILD environment variable set, to make sure that new environs are generated on each run.