You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2024/06/27 18:25:26 UTC
(maven-surefire) branch SUREFIRE-2242 updated (18f3f2c1d -> 8c40bd801)
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a change to branch SUREFIRE-2242
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
omit 18f3f2c1d [SUREFIRE-2242] Plain test report does not include names of the skipped tests
add 07fd1c8a5 Update MSITE and MPIR in a few ITs
add 5f64810fd [SUREFIRE-2124] Avoid creating unnecessary target files for pom projects
new 8c40bd801 [SUREFIRE-2242] Plain test report does not include names of the skipped tests
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (18f3f2c1d)
\
N -- N -- N refs/heads/SUREFIRE-2242 (8c40bd801)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../apache/maven/plugin/failsafe/IntegrationTestMojo.java | 12 ++++--------
.../apache/maven/plugin/surefire/report/TestSetStats.java | 4 +---
.../maven/plugin/surefire/report/WrappedReportEntry.java | 7 +++++--
.../java/org/apache/maven/surefire/api/suite/RunResult.java | 6 +++++-
surefire-its/src/test/resources/surefire-1490-custom/pom.xml | 4 ++--
.../src/test/resources/surefire-1490-default/pom.xml | 4 ++--
.../resources/surefire-260-testWithIdenticalNames/pom.xml | 4 ++--
.../resources/surefire-570-multipleReportDirectories/pom.xml | 2 +-
8 files changed, 22 insertions(+), 21 deletions(-)
(maven-surefire) 01/01: [SUREFIRE-2242] Plain test report does not include names of the skipped tests
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch SUREFIRE-2242
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
commit 8c40bd8013d898568f5d2e0285856593decc9b37
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Wed Jun 26 23:25:22 2024 +0200
[SUREFIRE-2242] Plain test report does not include names of the skipped tests
This closes #752
---
.../java/org/apache/maven/plugin/surefire/report/TestSetStats.java | 2 +-
.../apache/maven/plugin/surefire/report/WrappedReportEntry.java | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetStats.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetStats.java
index 96b4fb451..1431d8fde 100644
--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetStats.java
+++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetStats.java
@@ -227,7 +227,7 @@ public class TestSetStats {
if (testResult.isErrorOrFailure()) {
result.add(testResult.getOutput(trimStackTrace));
} else if (plainFormat && testResult.isSkipped()) {
- result.add(testResult.getSourceName() + " skipped");
+ result.add(testResult.getFullName() + " skipped");
} else if (plainFormat && testResult.isSucceeded()) {
result.add(testResult.getElapsedTimeSummary());
}
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/WrappedReportEntry.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/WrappedReportEntry.java
index 606936415..f661a003f 100644
--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/WrappedReportEntry.java
+++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/WrappedReportEntry.java
@@ -130,6 +130,10 @@ public class WrappedReportEntry implements TestSetReportEntry {
return original.getSourceName() + "." + original.getName();
}
+ public String getFullName() {
+ return getName() == null ? getSourceName() : getClassMethodName();
+ }
+
@Override
public String getGroup() {
return original.getGroup();
@@ -186,8 +190,7 @@ public class WrappedReportEntry implements TestSetReportEntry {
}
public String getElapsedTimeSummary() {
- String description = getName() == null ? getSourceName() : getClassMethodName();
- return description + " -- " + getElapsedTimeVerbose();
+ return getFullName() + " -- " + getElapsedTimeVerbose();
}
public boolean isErrorOrFailure() {