Medialab Test Workbench
- Guido Bonomini
To run the application, execute the following commands::
$ docker-compose -f local.yml build
$ docker-compose -f local.yml up
To create an superuser account, use this command:
$ docker-compose -f local.yml run --rm python manage.py createsuperuser
Running type checks with mypy:
$ docker-compose -f local.yml run --rm django mypy medialab
To run the tests, check your test coverage, and generate an HTML coverage report::
$ docker-compose -f local.yml run --rm django coverage run -m pytest
$ docker-compose -f local.yml run --rm django coverage html
$ open htmlcov/index.html
Running tests with py.test in docker
$ docker-compose -f local.yml run --rm django pytest
- Fix CI tests to adapt to proyect