summaryrefslogtreecommitdiff
path: root/.coveragerc
diff options
context:
space:
mode:
authorTim Simpson <tim.simpson@rackspace.com>2012-11-16 11:50:34 -0600
committerTim Simpson <tim.simpson@rackspace.com>2012-11-19 12:33:40 -0600
commitc007356a7884b5690742683cac1e5b78f191456b (patch)
tree54332a3e3a2ce76177fd48fe51eaa2fea49c6d24 /.coveragerc
parenta07002375217fcef9bf5c0844d284daeefc6cc25 (diff)
downloadtrove-c007356a7884b5690742683cac1e5b78f191456b.tar.gz
Adding tests to Reddwarf.
The tests come from the Reddwarf Integration repository. wsgi_intercept is used to allow the test code to hit the server code directly. It also properly sets up the SqlLite database before each run. * Adds an "event simulator" which queues up functions that would normally be spawned with eventlet. The various sleep functions are then swapped with a method that runs these faux-events. * Adds many of the Reddwarf Integration tests. The idea is these could still run in a richer, real environment, but are running here enables us to quickly check feature breaks for each commit and lowers the learning curve necessary to test the API. The downside is some of these tests still have artifacts of their origins, such as (unused) classes to connect to MySQL databases. Some more work will be necessary to separate the "real mode" functionality of these tests further. Implements: blueprint tox-tests Change-Id: I9857f265c1cb46832906ef5e6a0c7bb4a092e637
Diffstat (limited to '.coveragerc')
-rw-r--r--.coveragerc26
1 files changed, 26 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 00000000..6f625763
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,26 @@
+# .coveragerc to control coverage.py
+[run]
+branch = True
+
+timid=True
+include=*reddwarf*
+
+[report]
+# Regexes for lines to exclude from consideration
+exclude_lines =
+ # Have to re-enable the standard pragma
+ pragma: no cover
+
+ # Don't complain about missing debug-only code:
+ def __repr__
+ if self\.debug
+
+ # Don't complain if tests don't hit defensive assertion code:
+ raise AssertionError
+ raise NotImplementedError
+
+ # Don't complain if non-runnable code isn't run:
+ if 0:
+ if __name__ == .__main__.:
+
+ignore_errors = False