1.1 KiB
1.1 KiB
| name | description |
|---|---|
| Run Tests | Instructions for executing the project test suite to verify code correctness. |
Skill: Run Tests
The goal of this skill is to verify that the project is functioning correctly after development changes.
Instructions
- Verify Environment: The project operates dynamically with hardware acceleration (GPU via JAX) and uses
uvfor dependency/execution management. - Execute Tests:
- To run basic verification (e.g., checking JAX initialization and hardware detection), run the test script:
uv run python -m tests.test_jax_init - If a broader suite of modular tests is added (e.g.,
pytest), execute tests in thetests/directory with:uv run pytest tests/
- To run basic verification (e.g., checking JAX initialization and hardware detection), run the test script:
Important Considerations
- If you are running tests inside the local environment without a Devcontainer, verify whether
uv sync --frozen(for CPU) oruv sync --frozen --extra cuda(for GPU) has been executed to avoid import errors. - Do not run bare
python ...withoutuv runlocally, unless you are strictly operating inside a pre-activated.venvinside a Devcontainer.