Reason of skipped/Ignored tests on overview tab
On the overview tab, on expanding an ignored/skipped test, I want to show the reason of skipping a test.
here is how my JUnit XML file looks like:
<?xml version="1.0" encoding="UTF-8"?>
<testsuites tests="1" errors="0" failures="0" skipped="1" time="0.165613">
<testsuite name="Own profile preview" tests="1" errors="0" failures="0" skipped="1" time="0.165613">
<testcase classname="Own profile preview"
name=" Updating verifications and about me updated normal, edit and preview mode" time="0.165613">
<skipped message="skipped due to low priority">skipped due to low priority</skipped>
<system-out/>
<system-err/>
<location path="features/my.feature:5"/>
</testcase>
</testsuite>
</testsuites>
Here is how overview looks:
Instead of showing "… Functional Tests on Devices #4827 — Ignored", I want to show the reason "skipped due to low priority"
If there is any existing way to do it, please let us know, we can modify JUNIT report accordingly.
Please sign in to leave a comment.
This isn't directly possible. You can add your own build problems, but they will be added *additionally* to those reported by your build runner. This can be used for simple problems: https://confluence.jetbrains.com/display/TCD18/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ReportingBuildProblems
And you can add your own custom runner or plugin for build problems, but I'm afraid that the default view isn't configurable.
We also need to provide additional info for ignored tests. I don't get why it is impossible to print system out or skipped message on Overview tab
Can i use new "test metadata" with skipped tests? https://confluence.jetbrains.com/display/TCD18/Reporting+Test+Metadata
Hi,
sorry for the delay. I've been going over my previous answer and our issue tracker, and I've noticed an issue. While my answer is correct, in that the output is not customizable, the ignore message should actually be displayed in the overview tab. I provided this answer because we had an open issue in our tracker to implement displaying the reason for ignored tests, but it was not for the overview tab.
It not being displayed is probably a bug, and if you are experiencing this, please report it to our issue tracker: https://youtrack.jetbrains.com/issues/TW