ServerPortfolio
2.0
Python parsers and server
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Properties
Pages
bin
main_unittest.py
Go to the documentation of this file.
1
#!/usr/bin/python
2
3
## @package main_unittest
4
# @brief main executable to run all tests in serverportfolio/unit_test.
5
6
# version in bin
7
import
unittest
8
9
# it is just an executable, should call all tests
10
if
__name__ ==
"__main__"
:
11
12
# unittest.main()
13
# discover search for functions named 'test_*' by default
14
# testsuite = unittest.TestLoader().discover('.')
15
# ok works ! no need of import *, only need to name test_*.py
16
testsuite = unittest.TestLoader().discover(
'serverportfolio.unit_test'
)
17
print
"testsuite "
, testsuite
18
unittest.TextTestRunner(verbosity=1).run(testsuite)
Generated on Mon May 25 2015 18:55:59 for ServerPortfolio by
1.8.6