Name: test_coverage_example
Owner: Pantheon
Description: An example of behavior driven development, unit testing, linting, and continuous integration.
Created: 2016-01-27 04:22:39.0
Updated: 2016-01-27 17:17:18.0
Pushed: 2016-01-28 17:58:25.0
Size: 17
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
An example of linting, behavior driven development, unit testing, test coverage reporting, and continuous integration using an implementation of a fibonacci sequence generator.
'make prep'
autopep8==1.2.1
behave==1.2.5
pytest==2.8.5
pytest-cov==2.2.0
coveralls==1.1
It's highly suggested that you run on a virtual machine like vagrant. If you have vagrant installed you can start with
make vagrant
If your vagrant box is a fedora
make setupfedora; source /usr/bin/virtualenvwrapper.sh; mkvirtualenv testcovex; make prep; make test
If you are on a mac
make setupmac; source /usr/bin/virtualenvwrapper.sh; mkvirtualenv testcovex; make prep; make test
To run tests by themselves
make test