-
Notifications
You must be signed in to change notification settings - Fork 45
Running tests
Obada Haddad edited this page Dec 10, 2025
·
7 revisions
This wiki is no longer maintained. Please go to the new link for an updated wiki : https://docs.codabench.org
# Without "end to end" tests
$ docker compose exec django py.test -m "not e2e"
# "End to end tests" (a shell script to launch a selenium docker container)
$ ./run_selenium_tests.sh
# If you are on Mac OSX it is easy to watch these tests, no need to install
# anything just do:
$ open vnc://0.0.0.0:5900
# And login with password "secret"
To simulate the tests run by CircleCI locally, run the following command:
docker compose -f docker-compose.yml -f docker-compose.selenium.yml exec django py.test src/ -m "not e2e"The repo comes with a couple examples that are used during tests:
src/tests/functional/test_files/submission.zip
src/tests/functional/test_files/competition.zip
src/tests/functional/test_files/submission15.zip
src/tests/functional/test_files/competition15.zip
https://github.com/codalab/competition-examples/tree/master/v2/