Skip to content

the same 1 test written in unittest, pytest, robot framework and behave

Notifications You must be signed in to change notification settings

grzegorc-hub/python-testing-frameworks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Testing Frameworks Comparison

The same testcase written using following python testing frameworks: unittest, pytest, robot framwork, behave.

Prerequisite

Create python virtual environment, activate it and install dependencies:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

SUT (system under test)

Simple application which aim is to detect cats and people on given picture. Running the app: python demo_app/cat_detector.py

Running tests

Use the following commands (from root directory) for each testing framework to run the tests:

Unittest

python -m unittest tests/unittest/test_cat_detector.py

Pytest

python -m pytest tests/pytest/test_cat_detector_pytest.py

Robot framework

python -m robot tests/robot/Test/Cat_TestSuite.robot

Behave

python -m behave tests/behave/cat_detection.feature

About

the same 1 test written in unittest, pytest, robot framework and behave

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published