Skip to main content

Running tests

If you have followed the template approach a tests folder is already included in the repository. Add all your unit test files to this folder. Keeping tests organized in this location ensures they are correctly picked up during the release pipeline.

Running tests in vs code

Refer to this guide from microsoft.

Running tests locally using the command line

ArupCompute python template uses the pytest library for testing. If it's not already installed, you can install it with: pip install pytest. To run your tests, use pytest tests (if pytest is available on your PATH), or use python -m pytest tests for compatibility across all terminals.