Skip to content

Commit 0dd8242

Browse files
author
Ram Rachum
committed
-
1 parent bf82ba6 commit 0dd8242

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

garlicsim/test_garlicsim/__init__.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
'''Testing package for `garlicsim`.'''
55

6+
import sys
67
import os.path
78

89
import nose
@@ -78,11 +79,16 @@ def exists(module_name):
7879
__bootstrap()
7980

8081

81-
def invoke_nose(additional_arguments=[]):
82-
our_path = os.path.realpath(os.path.split(__file__)[0])
83-
arguments = [
84-
#'--where="%s"' % our_path,
85-
'--verbose',
86-
] + additional_arguments
87-
nose.run(defaultTest='test_garlicsim', argv=arguments)
82+
_default_nose_arguments = [
83+
'--verbosity=3',
84+
'--detailed-errors',
85+
'--with-xunit',
86+
'--cover-erase',
87+
'--cover-package=garlicsim,garlicsim_lib,garlicsim_wx,'
88+
'test_garlicsim,test_garlicsim_lib,test_garlicsim_wx',
89+
]
90+
91+
92+
def invoke_nose(arguments=_default_nose_arguments):
93+
nose.run(defaultTest='test_garlicsim', argv=([sys.argv[0]] + arguments))
8894

0 commit comments

Comments
 (0)