@@ -37,6 +37,7 @@ def run_test_suite():
3737 unittest .TextTestRunner ().run (suite )
3838 os .chdir (original_cwd )
3939
40+
4041def run_test_suite_with_junit_output ():
4142 try :
4243 import unittest2 as unittest
@@ -49,6 +50,7 @@ def run_test_suite_with_junit_output():
4950 xmlrunner .XMLTestRunner (output = '../test-reports' ).run (suite )
5051 os .chdir (original_cwd )
5152
53+
5254class CoverageCommand (Command ):
5355 """setup.py command to run code coverage of the test suite."""
5456 description = "Create an HTML coverage report from running the full test suite."
@@ -87,6 +89,7 @@ def finalize_options(self):
8789 def run (self ):
8890 run_test_suite ()
8991
92+
9093class JunitXmlTestCommand (Command ):
9194 """setup.py command to run the whole test suite."""
9295 description = "Run test full test suite with JUnit-formatted output."
@@ -170,7 +173,7 @@ def run(self):
170173
171174 setup_py = os .path .join ('examples' , 'searchcommands_app' , 'setup.py' )
172175
173- check_call ((setup_py , 'build' , '--force' ), stderr = STDOUT , stdout = sys .stdout )
176+ check_call (('python' , setup_py , 'build' , '--force' ), stderr = STDOUT , stdout = sys .stdout )
174177 tarball = 'searchcommands_app-{0}-private.tar.gz' .format (self .distribution .metadata .version )
175178 source = os .path .join ('examples' , 'searchcommands_app' , 'build' , tarball )
176179 target = os .path .join ('build' , tarball )
0 commit comments