From 71249f04abd91c74c4785de305b06c8a484062b9 Mon Sep 17 00:00:00 2001 From: Aleksa V Date: Wed, 8 Mar 2023 19:51:22 -0500 Subject: [PATCH] PR issues --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 82e3e48..c0567b3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,32 @@ # Welcome to Microblog! This is an example application featured in my [Flask Mega-Tutorial](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world). See the tutorial for instructions on how to work with it. + +# How to run behave tutorial + +*NOTE* behave steps in the .feature file MUST unicode match those in the 'steps' file + +e.g. in the *.feature file there is a Gherkin line like +'the task 'Buy groceries' with estimate '2' should be added to the todo list' + +then in the accompanying *step.py file it must follow the exact unicode in the behave decorator +Like this -> '@then("the task '{title}' with estimate '{estimate}' should be added to the todo list")' + + +Also step files must follow the regex *step.py + +1. Running all behave features + +run " behave tests/features/add-task.feature " + +# How to run unit tests + +unit tests must follow the "test*.py" regex to be picked up + +1. Individual tests + +run " python ./ests/unit/test_example.py " + +2. Run all unit tests + +run " python -m unittest discover -s ./tests/unit " \ No newline at end of file