Skip to content

Commit

Permalink
Merge pull request #68 from Tencent/bugfix/testplan-debugrun
Browse files Browse the repository at this point in the history
fix TestPlan debug_run error
  • Loading branch information
eeelin authored Jul 22, 2019
2 parents e7e0bc3 + 4fc60ca commit cccac3c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion testbase/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ def debug_run(self, report=None, resmgr_backend=None):
from testbase.report import StreamTestReport
if report is None:
report = StreamTestReport()
TestRunner(report, resmgr_backend).run(self)
return TestRunner(report, resmgr_backend=resmgr_backend).run(self)
13 changes: 13 additions & 0 deletions tests/test_testbase/test_plan.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#-*- coding: utf-8 -*-

import unittest
from testbase.report import StreamTestReport

class PlanTest(unittest.TestCase):

def test_debug_run(self):
from tests.sampletestplan.hello import HelloTestPlan
report = HelloTestPlan().debug_run()
self.assertIsInstance(report, StreamTestReport)


0 comments on commit cccac3c

Please sign in to comment.