Install the coverage tool and run it against your test suite. Then you can view a report showing what lines were covered by the test suite.
With the following steps, we will build some unit tests and then run them through the coverage tool.
recipe52.pyto contain our test code for this recipe.
from network import * import unittest from springpython.database.factory import * from springpython.database.core import * class EventCorrelationTest(unittest.TestCase): def setUp(self): db_name = "recipe52.db" factory = Sqlite3ConnectionFactory(db_name) self.correlator = EventCorrelator(factory) ...