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 2023/05/20 08:19:23 UTC

[maven-surefire] branch fixes created (now e27ff1453)

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a change to branch fixes
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


      at e27ff1453 Simplify link creation

This branch includes the following new commits:

     new 4e6a85d36 Remove duplicate license header
     new 3580f849d Remove unused dependency
     new e27ff1453 Simplify link creation

The 3 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.



[maven-surefire] 01/03: Remove duplicate license header

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch fixes
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 4e6a85d36a24fc6d003fb2e40ce18e005eed4513
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Fri May 19 19:10:01 2023 +0200

    Remove duplicate license header
---
 .../stubs/DependencyArtifactStubFactory.java       | 23 ----------------------
 1 file changed, 23 deletions(-)

diff --git a/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/stubs/DependencyArtifactStubFactory.java b/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/stubs/DependencyArtifactStubFactory.java
index 01c383f45..06f9900ed 100644
--- a/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/stubs/DependencyArtifactStubFactory.java
+++ b/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/stubs/DependencyArtifactStubFactory.java
@@ -18,25 +18,6 @@
  */
 package org.apache.maven.plugins.surefire.report.stubs;
 
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
 import java.io.File;
 import java.io.IOException;
 
@@ -45,10 +26,6 @@ import org.apache.maven.artifact.ArtifactUtils;
 import org.apache.maven.artifact.versioning.VersionRange;
 import org.apache.maven.plugin.testing.ArtifactStubFactory;
 
-/**
- * DependencyArtifactStubFactory
- *
- */
 public class DependencyArtifactStubFactory extends ArtifactStubFactory {
     private boolean flattenedPath = true;
 


[maven-surefire] 02/03: Remove unused dependency

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch fixes
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 3580f849dc06023dabf230c993a5b0f429d40b1e
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Fri May 19 19:10:42 2023 +0200

    Remove unused dependency
---
 surefire-report-parser/pom.xml | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/surefire-report-parser/pom.xml b/surefire-report-parser/pom.xml
index 557798086..e99f5cc10 100644
--- a/surefire-report-parser/pom.xml
+++ b/surefire-report-parser/pom.xml
@@ -41,10 +41,6 @@
       <groupId>org.apache.maven.shared</groupId>
       <artifactId>maven-shared-utils</artifactId>
     </dependency>
-    <dependency>
-      <groupId>org.apache.maven.reporting</groupId>
-      <artifactId>maven-reporting-api</artifactId>
-    </dependency>
   </dependencies>
   <build>
     <plugins>


[maven-surefire] 03/03: Simplify link creation

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch fixes
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit e27ff14531dbaa5fa5ccae48f2e5d9cd1a8a9672
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Fri May 19 19:23:43 2023 +0200

    Simplify link creation
---
 .../apache/maven/plugins/surefire/report/SurefireReportRenderer.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportRenderer.java b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportRenderer.java
index 4910c966c..9cf0039a7 100644
--- a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportRenderer.java
+++ b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportRenderer.java
@@ -205,7 +205,7 @@ public class SurefireReportRenderer extends AbstractMavenReportRenderer {
             Map<String, Object> packageSummary = parser.getSummary(testSuiteList);
 
             tableRow(new String[] {
-                '{' + packageName + ", #" + packageName + '}',
+                createLinkPatternedText(packageName, '#' + packageName),
                 String.valueOf(packageSummary.get("totalTests")),
                 String.valueOf(packageSummary.get("totalErrors")),
                 String.valueOf(packageSummary.get("totalFailures")),
@@ -297,7 +297,7 @@ public class SurefireReportRenderer extends AbstractMavenReportRenderer {
 
         sink.tableCell_();
 
-        tableCell('{' + suite.getName() + ", #" + suite.getPackageName() + '.' + suite.getName() + '}');
+        tableCell(createLinkPatternedText(suite.getName(), '#' + suite.getPackageName() + '.' + suite.getName()));
 
         tableCell(Integer.toString(suite.getNumberOfTests()));