Commit.
This commit is contained in:
parent
4d3f21c959
commit
cdc99c193d
|
@ -6,6 +6,12 @@ from unittest import TestSuite, TestLoader
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
|
||||
if sys.stdin.isatty():
|
||||
print('终端模式')
|
||||
else:
|
||||
print('GUI模式')
|
||||
testsuite = TestSuite()
|
||||
testsuite.addTest(TestLoader().discover('%s/Testcase' % project_home()))
|
||||
HTMLTestRunner(report_home='%s/Report/%s' % (project_home(), fmt_time(generate_report_name())), report_home_latest_name='latest').run(testsuite)
|
||||
|
|
Loading…
Reference in New Issue