summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestelementattribute.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-07-29 17:37:58 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-08-05 03:58:50 +0200
commitfb16a66b71250f83a9249a0a04064f56d70c9fd3 (patch)
tree369dce7ece617e57442753a02be12ab559163bab /src/testlib/qtestelementattribute.cpp
parent58f1c0c146aa678b8140cc17388b5e7f3997fcc6 (diff)
testlib: Report skipped tests in JUnit reporter as <skipped> elements
The Apache Ant and Surefire Maven specs document a <skipped> element that can be used to signify skipped test, with a corresponding total skipped test attribute on the <testsuite>. The element includes an optional message attribute, documented in the Surefire spec, and in the Ant source code, but not yet documented in the reverse-engineered Ant spec: https://github.com/windyroad/JUnit-Schema/pull/11 Pick-to: 6.2 Task-number: QTBUG-95424 Change-Id: Ib6417a41b9c328836f4017e6ebf7f7e9cd91288d Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/testlib/qtestelementattribute.cpp')
-rw-r--r--src/testlib/qtestelementattribute.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testlib/qtestelementattribute.cpp b/src/testlib/qtestelementattribute.cpp
index d091804f8c1..8609de6d18a 100644
--- a/src/testlib/qtestelementattribute.cpp
+++ b/src/testlib/qtestelementattribute.cpp
@@ -145,7 +145,8 @@ const char *QTestElementAttribute::name() const
"time",
"timestamp",
"hostname",
- "classname"
+ "classname",
+ "skipped"
};
if (attributeIndex != QTest::AI_Undefined)