From a9970552d608e4cf37bc50b6ce58c66c852ff1fb Mon Sep 17 00:00:00 2001 From: Andrei Stoica Date: Sat, 15 Oct 2022 15:07:08 -0400 Subject: [PATCH] added testing to readme --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 5f7cd02..28a7c8e 100644 --- a/README.md +++ b/README.md @@ -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)\