Issue #5 add 2 fa |
||
---|---|---|
app | ||
deployment | ||
migrations | ||
tests | ||
.flaskenv | ||
.gitattributes | ||
.gitignore | ||
Dockerfile | ||
Jenkinsfile | ||
LICENSE | ||
Procfile | ||
README.md | ||
Vagrantfile | ||
__init__.py | ||
babel.cfg | ||
boot.sh | ||
config.py | ||
microblog.py | ||
requirements.txt |
README.md
Welcome to Microblog!
This is an example application featured in my Flask Mega-Tutorial. 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
- 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
- Individual tests
run " python ./ests/unit/test_example.py "
- Run all unit tests
run " python -m unittest discover -s ./tests/unit "