There was an error while loading. Please reload this page.
docker exec -it fecfile-api python3 manage.py test [-k <test name>]
Drop into the API container with:
docker exec -it fecfile-api bash -H
You can then run unit tests with:
python3 manage.py test [-k <test name>]
To run the fecfile-validate tests, from the fecfile-validate directory run python3 -m pytest. You may need to run pip install pytest first.
fecfile-validate
python3 -m pytest
pip install pytest
See Locust testing wiki page.
docker stats
View logs for a single container:
docker logs <container ID> [-f]
View logs for all containers:
docker compose logs [-f]
To view only the error logs:
docker logs <container ID> [-f] 1>/dev/null
To view only the access logs:
docker logs <container-id> [-f] 2>/dev/null
The -f (follow) flag causes the command to continue to output log messages as they occur until the user issues a break.
-f