Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.08 KB

File metadata and controls

48 lines (34 loc) · 1.08 KB

Testing

Tests are run automatically via GitHub Actions when the develop or master branches are pushed.

If you are making changes, please run them locally:

inv test

This launches a docker container used to run the tests.

Interactive

To run specific tests, use the --interactive flag to open a shell on the docker container. The pytest utility can then be used to run specific tests directly:

inv test -i
pytest -vv path/to/test.py

Debugging

To debug tests using vscode use the --debug flag to run the python debugpy debugger on the docker container:

inv test -d

The debugger will wait for the client to attach. You can attach using the same vscode launch profile used to debug the Clerk app (see here).

You can also debug specific tests using the --interactive and --debug flags together:

inv test -d -i
pytest -vv path/to/test.py

Note

The debugger used for testing and for the Clerk app listens on the same port so you can only run one at a time.