added testing to readme

This commit is contained in:
Andrei Stoica 2022-10-15 15:07:08 -04:00
parent 51d631daf6
commit a9970552d6
1 changed files with 13 additions and 0 deletions

View File

@ -102,6 +102,19 @@ docker-compose -p recipe-test down
```
Test are written in pytest framework. Currently focused on unittest.
Integration tests to come.
To run test use:
```
pytest --cov=src/recipe_graph --cov-report lcov --cov-report html
```
The html report is under `htmlcov/` and can be viewed through any browser.
The `lcov` file can be used for the [Coverage Gutters](https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters)
plugin for VS Code to view coverage in your editor.
## TODO
> ☑ automate scraping\
> ☑ extracting quantity and name (via regex)\