Flask e2e testing example, from frontend inputs to database assertions. + Screenshots of results
https://realburi.github.io/flask-todo-e2e/
You can see the results something like this https://realburi.github.io/flask-todo-e2e/
- Ensure you have JDK-6 and up and $JAVA_HOME set in your %PATH%
- Create new python virtual environment, pc or mac
python -m virtualenv venv
# To create the environment
source venv/bin/activate
# On Mac/Linux OS
venv\Scripts\activate
# On Windows OS
- Install the required packages by running the following command, after activating the VENV
pip install -r requirements.txt
- Install Allure for reporting the test Results
brew install allure
# for mac
For Windows run the following command
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser irm get.scoop.sh | iex
scoop install allure
- Finally Run the tests with the following command
pytest --alluredir=./allure-results
allure serve ./allure-results