summaryrefslogtreecommitdiffstats
path: root/dovetail/tests
diff options
context:
space:
mode:
authorPanagiotis Karalis <pkaralis@intracom-telecom.com>2019-02-28 15:33:05 +0200
committerStamatis Katsaounis <mokats@intracom-telecom.com>2019-03-07 14:44:58 +0000
commitf6058cb4c4eba271761754a00a1a3e1bd6a40616 (patch)
tree11d607004808f3d90fa1288d3dba4d1b78db078a /dovetail/tests
parent73b7c7b7f9d78787039dcda96bc3af3155064e13 (diff)
Fix the verdict of TC in sub-testcase list result
When the sub-test case list is defined, in the dovetail results, each test case is appeared with the its verdict next to its name. Once a sub-testcase is passed, the verdict PASS is appeared next to the name of sub testcase. Once a sub-testcase is skipped or failed, the verdict FAIL is appeared next to the name of sub-testcase. This fix updates the code so that the verdict of skipped and failed sub test cases to be appeared respectively next to its sub-tsetcase name. JIRA: DOVETAIL-763 Change-Id: Ib05b3793a57acbaa67b89321a840ae11251c2417 Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
Diffstat (limited to 'dovetail/tests')
-rw-r--r--dovetail/tests/unit/test_report.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/dovetail/tests/unit/test_report.py b/dovetail/tests/unit/test_report.py
index 9d3acbfd..4e1214e2 100644
--- a/dovetail/tests/unit/test_report.py
+++ b/dovetail/tests/unit/test_report.py
@@ -1204,6 +1204,13 @@ class ReportTesting(unittest.TestCase):
dt_report.FunctestChecker.get_sub_testcase('subt_a',
['subt_b', 'subt_a+']))
+ def test_functest_get_sub_testcase_class_match(self):
+ self.assertEquals(
+ True,
+ dt_report.FunctestChecker.get_sub_testcase('subclass_a',
+ ['subclass_a.subt_a',
+ 'subclass_b.subt_b']))
+
def test_functest_get_sub_no_match(self):
self.assertEquals(
False,