Skip to content

afzals2000/python_tdd_pytest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python TDD using Pytest

A Guideline how to write Test Driven Development in Python using Pytest

Installation

Python 3.x should be available on OS. Create virtual environment in $HOME dir ($HOME/venv3x)

Usage Example

Setup

$:~/mypytest$ source ~/venv3x/bin/activate;
$:~/mypytest$ pip install -r requirements.txt

Run all test verbose

$pytest -v

Run all test with tests print

$pytest -s

Run a specific tests

$pytest -q -s ./test/maths/test_my_math.py

Change Log

  • 0.0.1
    • Work in progress

Meta

https://github.com/afzals2000/python_tdd_pytest

Contributing

  1. Fork it (https://github.com/afzals2000/python_tdd_pytest)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

About

Python Test Driven Development using Pytest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages