Running Tests
# Without "end to end" tests
$ docker compose exec django py.test -m "not e2e"
# Playwright tests (make sure to install uv first: https://docs.astral.sh/uv/getting-started/installation/)
uv sync --frozen
uv run playwright install
docker compose exec -e DJANGO_SUPERUSER_PASSWORD=codabench django python manage.py createsuperuser --username codabench --email codabench@test.mail --no-input
uv run pytest test_auth.py test_account_creation.py test_competition.py test_submission.py
CircleCI¶
To simulate the tests run by CircleCI locally, run the following command:
Example competitions¶
The repo comes with a couple examples that are used during tests:
v2 test data¶
v1.5 legacy test data¶
Other Codalab Competition examples¶
https://github.com/codalab/competition-examples/tree/master/v2/