Skip to content

Commit

Permalink
Merge pull request #51 from romana/variable-err
Browse files Browse the repository at this point in the history
Fixed uninitialized variable error
  • Loading branch information
jbrendel authored Sep 10, 2017
2 parents 825c4e9 + f70bb64 commit 85ec6c5
Show file tree
Hide file tree
Showing 5 changed files with 384 additions and 25 deletions.
13 changes: 13 additions & 0 deletions nose.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[nosetests]
verbosity=1
nocapture=on

processes=-1
process-timeout=45
process-restartworker=on

with-coverage=on
cover-branches=on
cover-html=on
cover-html-dir=/tmp/vpc-router-coverage
cover-package=vpcrouter
21 changes: 15 additions & 6 deletions run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
#!/bin/bash

# Run all the unit tests and create a coverage report.
# Run unit tests and create a coverage report.
#
# To run the test suite for the entire package, don't specify any options:
#
# $ ./run_tests.sh
#
# To run specific tests, specify those as command line option:
#
# $ ./run_tests.sh vpcrouter.tests.test_vpc.TestVpcUtil vpcrouter.tests.test_utils

COVERAGE_REPORT_DIR=/tmp/vpc-router-coverage
nosetests -v --with-coverage --cover-erase \
--cover-html --cover-html-dir=$COVERAGE_REPORT_DIR \
--cover-package vpcrouter
rm .coverage* # cover-erase with multiprocessing seemed to cause issues
# (warning messages or some lines not shown as covered)
# so deleting old cover files manually instead

echo "@@@ Coverage report: file://$COVERAGE_REPORT_DIR/index.html"
nosetests -v --config=nose.cfg $@

echo "@@@ Coverage report: file:///tmp/vpc-router-coverage/index.html"
echo
2 changes: 1 addition & 1 deletion vpcrouter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"""

__version__ = "1.8.2"
__version__ = "1.8.3"
Loading

0 comments on commit 85ec6c5

Please sign in to comment.