pantheon-systems/test_coverage_example

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

Homepage:

Size: 17

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Circle CI Coverage Status

fibonacci

An example of linting, behavior driven development, unit testing, test coverage reporting, and continuous integration using an implementation of a fibonacci sequence generator.

Requirements

'make prep'

Testing packages

autopep8==1.2.1

behave==1.2.5

pytest==2.8.5

pytest-cov==2.2.0

coveralls==1.1

Testing services

Circle CI

Coveralls

How to Run Tests

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


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.