bugfix #210: SuiteNotFound

This commit is contained in:
debugtalk
2018-05-04 19:43:23 +08:00
parent 1164fab267
commit cb57e4bec2
5 changed files with 12 additions and 3 deletions

View File

@@ -145,3 +145,10 @@ class TestHttpRunner(ApiServerUnittest):
self.assertTrue(os.path.isfile(report))
report_save_dir = os.path.join(os.getcwd(), 'reports', output_folder_name)
shutil.rmtree(report_save_dir)
def test_testcase_layer(self):
testcase_path = "tests/testcases/smoketest.yml"
runner = HttpRunner(failfast=True).run(testcase_path)
summary = runner.summary
self.assertTrue(summary["success"])
self.assertEqual(summary["stat"]["testsRun"], 8)