Changes between Version 24 and Version 25 of TracDev/UnitTests
- Timestamp:
- Jan 29, 2018, 10:53:14 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/UnitTests
v24 v25 3 3 = Trac Unit Tests 4 4 5 Most of the Python modules in the Trac codebase are accompanied by unit tests. You should run the tests whenever making changes, to be confident you haven't broken anything. Note though that the coverage of application code by the unit tests is incomplete, so not having broken the unit tests does not mean you haven't broken the application! Unit tests do not replace manual testing.5 Unit tests assist in developing code that meets requirements and prevents regressions when modifying code. Most of the Python modules in the Trac codebase are accompanied by unit tests. They are added as separate scripts and in their own folder `tests`. 6 6 7 Ideally, also include new unit tests for a change or enhancement, even if you are just submitting a patch. Patches that break the unit tests are a lot less likely to get integrated than patches that add unit tests for the new or changed functionality. 7 You should run the tests whenever making changes, to be confident you haven't broken anything. Note though that the coverage of application code by the unit tests is incomplete, so not having broken the unit tests does not mean you haven't broken the application! Unit tests do not replace manual testing. 8 9 Ideally, please include new unit tests for a change or enhancement, even if you are just submitting a patch. Patches that break the unit tests are a lot less likely to get integrated than patches that add unit tests for the new or changed functionality. 8 10 9 11 == Running the tests