Edgewall Software

Changes between Version 12 and Version 13 of TracDev/UnitTests


Ignore:
Timestamp:
Jan 18, 2010, 5:37:11 PM (14 years ago)
Author:
anatoly techtonik <techtonik@…>
Comment:

+ cross-platform way of running tests

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/UnitTests

    v12 v13  
    88
    99You can run the unit tests from the command line by executing:
     10{{{
     11python -m trac.test --skip-functional-tests
     12}}}
     13or unix way:
    1014{{{
    1115$ PYTHONPATH=. python trac/test.py --skip-functional-tests
     
    2327This 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:
    2428{{{
     29python -m trac.versioncontrol.tests.__init__
     30}}}
     31or if you prefer bash:
     32{{{
    2533 $ PYTHONPATH=. trac/versioncontrol/tests/__init__.py
    2634}}}
    2735
    2836To run the unit tests for the {{{trac.versioncontrol.cache}}} module, execute:
     37{{{
     38python -m trac.versioncontrol.tests.cache
     39}}}
     40or
    2941{{{
    3042 $ PYTHONPATH=. trac/versioncontrol/tests/cache.py