Add tests for audits and flavor utilities, update .gitignore, and enhance CPU data handling
This commit is contained in:
25
README.md
25
README.md
@@ -0,0 +1,25 @@
|
||||
# watcher-visio
|
||||
|
||||
## Running tests
|
||||
|
||||
From the project root (with Django and dependencies installed, e.g. in a virtualenv):
|
||||
|
||||
```bash
|
||||
python manage.py test dashboard
|
||||
```
|
||||
|
||||
Run a specific test module:
|
||||
|
||||
```bash
|
||||
python manage.py test dashboard.tests.test_mathfilters
|
||||
```
|
||||
|
||||
### Running tests in Docker
|
||||
|
||||
Use the **dev** compose file so the project directory is mounted; the container will then run tests against your current code (no image rebuild needed):
|
||||
|
||||
```bash
|
||||
docker compose -f docker-compose.yml -f docker-compose.dev.yml run --rm watcher-visio python3 manage.py test dashboard
|
||||
```
|
||||
|
||||
If you run tests with only the base compose (`docker compose run --rm watcher-visio ...`), the container uses the code baked into the image at build time. After code or test changes, either rebuild the image or use the dev override above so tests see the latest files.
|
||||
|
||||
Reference in New Issue
Block a user