TaaS
(Py)Test as a Service
Integration with Testbook
Setup
This repo uses poetry
Install requirements
poetry install
Open shell with venv and run app
poetry shell
Run app (first open shell)
python flask_app.py
Format python document (first open shell)
black flask_app.py
Running locally via Docker
Make sure that ../development
has a clone of the development repo (can be read-only), and that ../submissions-taas
has a clone of the submissions-hsXX
repo, cloned so that taas has access to it. Typically, this means:
git clone https://taas:TOKEN@gitlab.ost.ch/ins-courses/autpy/submissions-hs22.git submissions-taas --branch florian.bruhin
(with TOKEN
being a GitLab Project Access Token).
Make sure that the correct branch is checked out in the submissions repo.
docker-compose build
docker-compose run -e USERNAME=florian.bruhin -v $PWD/../development:/taas/test_repo -v $PWD/../submissions-taas:/taas/submission_repo --service-ports taas
Then run the taas
client using e.g. submit --force ../notebooks/...
(after poetry shell
)