| 3 | | This will import the DB, Biz, Lib, and UI Tiers for the test. We will add the test files manually in the __init__.py files |
|---|
| 4 | | in each module. The init files and every Test Case file must provide a function suite() which will return a unittest.TestSuite |
|---|
| 5 | | object that encompasses the all of the test cases and suite within that file or module. See the sample init and testCase files |
|---|
| 6 | | for more information. |
|---|
| | 3 | This will import the DB, Biz, Lib, and UI Tiers for the test. We will add |
|---|
| | 4 | the test files manually in the __init__.py files in each module. The init |
|---|
| | 5 | files and every Test Case file must provide a function suite() which will |
|---|
| | 6 | return a unittest.TestSuite object that encompasses the all of the test |
|---|
| | 7 | cases and suite within that file or module. See the sample init and |
|---|
| | 8 | testCase files for more information. |
|---|
| 38 | | coverage.stop() |
|---|
| 39 | | #You can uncomment this to get test coverage on a particular module, but if you want to |
|---|
| 40 | | #see the entire report for dabo, run "python CoverageReport.py". I would pipe it to a file though |
|---|
| 41 | | #coverage.report([dabo.dColors, dabo.dObject, dabo]) |
|---|
| | 44 | if coverage: |
|---|
| | 45 | coverage.stop() |
|---|
| | 46 | #You can uncomment this to get test coverage on a particular module, but if you want to |
|---|
| | 47 | #see the entire report for dabo, run "python CoverageReport.py". I would pipe it to a file though |
|---|
| | 48 | #coverage.report([dabo.dColors, dabo.dObject, dabo]) |
|---|