-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix up tests to match GTest report changes
Expect extra ProcessChecks suite in every report.
- Loading branch information
1 parent
327faae
commit dbb2617
Showing
9 changed files
with
131 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 35 additions & 2 deletions
37
tests/functional/testplan/testing/fixtures/base/passing/report.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,39 @@ | ||
from testplan.report import TestReport, TestGroupReport | ||
from testplan.report import ( | ||
TestReport, | ||
TestGroupReport, | ||
TestCaseReport, | ||
RuntimeStatus, | ||
) | ||
from testplan.testing.multitest.entries.assertions import RawAssertion | ||
|
||
testcase_report = TestCaseReport( | ||
name="ExitCodeCheck", | ||
uid="ExitCodeCheck", | ||
suite_related=True, | ||
entries=[ | ||
{ | ||
"type": "RawAssertion", | ||
"description": "Process exit code check", | ||
"passed": True, | ||
} | ||
], | ||
) | ||
|
||
testcase_report.runtime_status = RuntimeStatus.FINISHED | ||
|
||
expected_report = TestReport( | ||
name="plan", | ||
entries=[TestGroupReport(name="MyTest", category="dummytest", entries=[])], | ||
entries=[ | ||
TestGroupReport( | ||
name="MyTest", | ||
category="dummytest", | ||
entries=[ | ||
TestGroupReport( | ||
name="ProcessChecks", | ||
category="testsuite", | ||
entries=[testcase_report], | ||
), | ||
], | ||
), | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters