PR issues

This commit is contained in:
Aleksa V 2023-03-08 19:51:22 -05:00
parent 1d0a0c1c17
commit 71249f04ab
1 changed files with 29 additions and 0 deletions

View File

@ -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 "