diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-07-29 17:37:58 +0200 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-08-05 03:58:50 +0200 |
| commit | fb16a66b71250f83a9249a0a04064f56d70c9fd3 (patch) | |
| tree | 369dce7ece617e57442753a02be12ab559163bab /src/testlib/qtestelementattribute.cpp | |
| parent | 58f1c0c146aa678b8140cc17388b5e7f3997fcc6 (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.cpp | 3 |
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) |
