Commit b6dfd8a2 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Update TODO entries for the test runner.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@987 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 842166b9
...@@ -20,11 +20,6 @@ import unittest ...@@ -20,11 +20,6 @@ import unittest
import logging import logging
import time import time
# TODO:
# - include failed imports in the report
# - group tests by kind (unit, functionnal...)
# - import each test case instead of modules to reduce import errors
# list of test modules # list of test modules
# each of them have to import its TestCase classes # each of them have to import its TestCase classes
UNIT_TEST_MODULES = [ UNIT_TEST_MODULES = [
...@@ -104,6 +99,7 @@ class NeoTestRunner(unittest.TestResult): ...@@ -104,6 +99,7 @@ class NeoTestRunner(unittest.TestResult):
try: try:
test_module = __import__(test_module, globals(), locals(), ['*']) test_module = __import__(test_module, globals(), locals(), ['*'])
except ImportError, err: except ImportError, err:
# TODO: include import errors in report
print "Import of %s failed : %s" % (test_module, err) print "Import of %s failed : %s" % (test_module, err)
continue continue
suite.addTests(loader.loadTestsFromModule(test_module)) suite.addTests(loader.loadTestsFromModule(test_module))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment