Changes between Version 12 and Version 13 of TracDev/UnitTests
- Timestamp:
- Jan 18, 2010, 5:37:11 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/UnitTests
v12 v13 8 8 9 9 You can run the unit tests from the command line by executing: 10 {{{ 11 python -m trac.test --skip-functional-tests 12 }}} 13 or unix way: 10 14 {{{ 11 15 $ PYTHONPATH=. python trac/test.py --skip-functional-tests … … 23 27 This will run all the unit tests, but you can also run only those tests for a specific package or module. For example, to run the unit tests for the {{{trac.versioncontrol}}} package, execute: 24 28 {{{ 29 python -m trac.versioncontrol.tests.__init__ 30 }}} 31 or if you prefer bash: 32 {{{ 25 33 $ PYTHONPATH=. trac/versioncontrol/tests/__init__.py 26 34 }}} 27 35 28 36 To run the unit tests for the {{{trac.versioncontrol.cache}}} module, execute: 37 {{{ 38 python -m trac.versioncontrol.tests.cache 39 }}} 40 or 29 41 {{{ 30 42 $ PYTHONPATH=. trac/versioncontrol/tests/cache.py