Skip to content

1 minute setup for starting your test-driven development cycle in python

Notifications You must be signed in to change notification settings

pfeffer90/tdd_setup_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

tdd_setup_python

Requirements

You need python and a python test runner, for example pytest. An easy way to setup an isolated environment for your TDD project is to use the conda package manager.

Installation with the conda package manager

conda create -n tddpy pytest

This creates a environment with the name tddpy ready-made with python, pytest and other modules that pytest depends on. You change to this environment via

source activate tddpy

and leave it via

source deactivate

Run tests

cd tdd_setup_python
pytest

This will run all the assertions in the functions with name pattern "test_*" in the files matching "test_*.py". You will see one failing test that you can sure fix easily by modifying test_simple_calculator.py :)

Start the TDD cycle and write awesome code

About

1 minute setup for starting your test-driven development cycle in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages