NYU-DevOps-Charlie-CSCI-GA-3033-013 / products

Product Team for CSCI-GA.3033-013
http://nyu-lab-bluemix-charlie-products.mybluemix.net/
1 stars 1 forks source link

Update Unit Tests to Meet Coverage Requirements #27

Closed ephraimrosenfeld closed 7 years ago

ephraimrosenfeld commented 7 years ago

Requirements

  1. Add the necessary dependencies such that the Vagrant environment is provisioned with the nose and coverage test packages such that the following commands can be run:
    python -m unittest discover #standard python unit test
    nosetests -v --rednose --nologcapture   #nose unit test; add the '--exe' argument if on Windows
    coverage run test_server.py #creating code coverage report, where 'test_server' is the test class
    coverage report -m --include=server.py
  2. Add unit tests to ensure that the coverage report states that 95%+ of the project is covered/accounted-for by the test class(es)
  3. Ensure that running the aforementioned commands pass without any failed unit tests
ephraimrosenfeld commented 7 years ago

The minimal coverage threshold has been revised to 92%.