source: trunk/game/run_tests.py @ 276

Revision 276, 371 bytes checked in by orlandov, 10 years ago (diff)

Ticket #67: Refactor unit tests into runnable shape

  • Move tests to their own top level directory
  • Fix unit test failures
  • Add base/composed classes to test suite
  • Run like "nosetests ./run_python.py" OR "./run_python.py"
  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1#!/usr/bin/python
2import sys, os, unittest
3
4def _jp(path):
5    return os.path.sep.join(path.split('/'))
6
7_paths = ('../../engine/swigwrappers/python', '../../engine/extensions')
8for p in _paths:
9    if p not in sys.path:
10        sys.path.append(_jp(p))
11
12from tests.test_objects_base import *
13from tests.test_crate import *
14
15if __name__ == '__main__':
16    unittest.main()
Note: See TracBrowser for help on using the repository browser.