Fridrich Strba 2024-10-06 19:54:10 +00:00 committed by Git OBS Bridge
parent 858b420490
commit 89f56f6988
8 changed files with 2366 additions and 168 deletions

View File

@ -1,30 +1,273 @@
From 900884b9e9f4d359d173bfb0251ccdc44d885f11 Mon Sep 17 00:00:00 2001
From 71bca819927dcd976ece1aab6cdb9ddd4aab8a09 Mon Sep 17 00:00:00 2001
From: Mikolaj Izdebski <mizdebsk@redhat.com>
Date: Mon, 10 Jul 2017 10:37:50 +0200
Subject: [PATCH 1/2] Port to TestNG 7.4.0
---
surefire-providers/surefire-testng/pom.xml | 3 +--
.../maven/surefire/testng/conf/AbstractDirectConfigurator.java | 2 +-
.../maven/surefire/testng/conf/TestNGMapConfigurator.java | 2 +-
3 files changed, 3 insertions(+), 4 deletions(-)
pom.xml | 2 +-
.../surefire-testng-utils/pom.xml | 1 -
.../java/testng/utils/MethodSelectorTest.java | 106 ++++++++++++++++--
surefire-providers/surefire-testng/pom.xml | 1 -
.../maven/surefire/testng/TestNGReporter.java | 4 -
.../conf/AbstractDirectConfigurator.java | 2 +-
.../testng/conf/TestNGMapConfigurator.java | 9 +-
.../surefire/testng/TestNGReporterTest.java | 4 +-
.../conf/TestNGMapConfiguratorTest.java | 6 +-
9 files changed, 104 insertions(+), 31 deletions(-)
diff --git a/surefire-providers/surefire-testng/pom.xml b/surefire-providers/surefire-testng/pom.xml
index 0bd39be71..19e1b6e32 100644
--- a/surefire-providers/surefire-testng/pom.xml
+++ b/surefire-providers/surefire-testng/pom.xml
@@ -56,8 +56,7 @@
<dependency>
diff --git a/pom.xml b/pom.xml
index 432d7ebae..75a61b38e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -98,7 +98,7 @@
<mavenSharedUtilsVersion>3.3.4</mavenSharedUtilsVersion>
<powermockVersion>2.0.9</powermockVersion>
<jacocoVersion>0.8.12</jacocoVersion>
- <testngVersion>5.11</testngVersion>
+ <testngVersion>7.4.0</testngVersion>
<surefire-shared-utils.version>${project.version}</surefire-shared-utils.version>
<maven.surefire.scm.devConnection>scm:git:https://gitbox.apache.org/repos/asf/maven-surefire.git</maven.surefire.scm.devConnection>
<maven.site.path>surefire-archives/surefire-LATEST</maven.site.path>
diff --git a/surefire-providers/surefire-testng-utils/pom.xml b/surefire-providers/surefire-testng-utils/pom.xml
index 2816d9329..fbb357d02 100644
--- a/surefire-providers/surefire-testng-utils/pom.xml
+++ b/surefire-providers/surefire-testng-utils/pom.xml
@@ -47,7 +47,6 @@
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
- <version>${testngVersion}</version>
<version>${testngVersion}</version>
- <classifier>jdk15</classifier>
<scope>provided</scope>
</dependency>
</dependencies>
diff --git a/surefire-providers/surefire-testng-utils/src/test/java/testng/utils/MethodSelectorTest.java b/surefire-providers/surefire-testng-utils/src/test/java/testng/utils/MethodSelectorTest.java
index c0e7838bd..5f180624d 100644
--- a/surefire-providers/surefire-testng-utils/src/test/java/testng/utils/MethodSelectorTest.java
+++ b/surefire-providers/surefire-testng-utils/src/test/java/testng/utils/MethodSelectorTest.java
@@ -19,6 +19,10 @@
package testng.utils;
import java.lang.reflect.Method;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.Callable;
import junit.framework.TestCase;
import org.apache.maven.surefire.api.testset.TestListResolver;
@@ -27,7 +31,11 @@
import org.testng.IRetryAnalyzer;
import org.testng.ITestClass;
import org.testng.ITestNGMethod;
+import org.testng.ITestResult;
+import org.testng.internal.ConstructorOrMethod;
import org.testng.internal.DefaultMethodSelectorContext;
+import org.testng.internal.reflect.ReflectionHelper;
+import org.testng.xml.XmlTest;
/**
*
@@ -65,16 +73,26 @@ public void testInclusionOfMethodFromSubClass() {
}
private static class FakeTestNGMethod implements ITestNGMethod {
+ private final ConstructorOrMethod consMethod;
private final Class<?> clazz;
private final String methodName;
FakeTestNGMethod(Class<?> clazz, String methodName) {
+ ConstructorOrMethod temp = null;
+ Method[] methods = ReflectionHelper.getLocalMethods(clazz);
+ for (Method method : methods) {
+ if (method.getName().equalsIgnoreCase(methodName)) {
+ temp = new ConstructorOrMethod(method);
+ break;
+ }
+ }
this.clazz = clazz;
this.methodName = methodName;
+ this.consMethod = temp;
}
@Override
- public Class getRealClass() {
+ public Class<?> getRealClass() {
return clazz;
}
@@ -86,19 +104,14 @@ public ITestClass getTestClass() {
@Override
public void setTestClass(ITestClass iTestClass) {}
- @Override
- public Method getMethod() {
- return null;
- }
-
@Override
public String getMethodName() {
return methodName;
}
@Override
- public Object[] getInstances() {
- return new Object[0];
+ public Object getInstance() {
+ return null;
}
@Override
@@ -202,6 +215,9 @@ public long getTimeOut() {
return 0;
}
+ @Override
+ public void setTimeOut(long timeOut) {}
+
@Override
public int getInvocationCount() {
return 0;
@@ -249,11 +265,19 @@ public int getThreadPoolSize() {
@Override
public void setThreadPoolSize(int i) {}
+ @Override
+ public boolean getEnabled() {
+ return false;
+ }
+
@Override
public String getDescription() {
return null;
}
+ @Override
+ public void setDescription(String description) {}
+
@Override
public void incrementCurrentInvocationCount() {}
@@ -270,6 +294,14 @@ public int getParameterInvocationCount() {
return 0;
}
+ @Override
+ public void setMoreInvocationChecker(Callable<Boolean> moreInvocationChecker) {}
+
+ @Override
+ public boolean hasMoreInvocation() {
+ return false;
+ }
+
@Override
public ITestNGMethod clone() {
try {
@@ -280,12 +312,17 @@ public ITestNGMethod clone() {
}
@Override
- public IRetryAnalyzer getRetryAnalyzer() {
+ public IRetryAnalyzer getRetryAnalyzer(ITestResult result) {
+ return null;
+ }
+
+ @Override
+ public Class<? extends IRetryAnalyzer> getRetryAnalyzerClass() {
return null;
}
@Override
- public void setRetryAnalyzer(IRetryAnalyzer iRetryAnalyzer) {}
+ public void setRetryAnalyzerClass(Class<? extends IRetryAnalyzer> clazz) {}
@Override
public boolean skipFailedInvocations() {
@@ -309,8 +346,55 @@ public boolean ignoreMissingDependencies() {
public void setIgnoreMissingDependencies(boolean b) {}
@Override
- public int compareTo(Object o) {
+ public List<Integer> getInvocationNumbers() {
+ return Collections.emptyList();
+ }
+
+ @Override
+ public void setInvocationNumbers(List<Integer> numbers) {}
+
+ @Override
+ public void addFailedInvocationNumber(int number) {}
+
+ @Override
+ public List<Integer> getFailedInvocationNumbers() {
+ return Collections.emptyList();
+ }
+
+ @Override
+ public int getPriority() {
+ return 0;
+ }
+
+ @Override
+ public void setPriority(int priority) {}
+
+ @Override
+ public int getInterceptedPriority() {
return 0;
}
+
+ @Override
+ public void setInterceptedPriority(int priority) {}
+
+ @Override
+ public XmlTest getXmlTest() {
+ return null;
+ }
+
+ @Override
+ public ConstructorOrMethod getConstructorOrMethod() {
+ return consMethod;
+ }
+
+ @Override
+ public Map<String, String> findMethodParameters(XmlTest test) {
+ return test.getLocalParameters();
+ }
+
+ @Override
+ public String getQualifiedName() {
+ return null;
+ }
}
}
diff --git a/surefire-providers/surefire-testng/pom.xml b/surefire-providers/surefire-testng/pom.xml
index aa23267c3..33b1ef76f 100644
--- a/surefire-providers/surefire-testng/pom.xml
+++ b/surefire-providers/surefire-testng/pom.xml
@@ -57,7 +57,6 @@
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>${testngVersion}</version>
- <classifier>jdk15</classifier>
+ <version>7.4.0</version>
<scope>provided</scope>
</dependency>
<dependency>
diff --git a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGReporter.java b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGReporter.java
index ec887b792..3021a4049 100644
--- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGReporter.java
+++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGReporter.java
@@ -59,10 +59,6 @@ public class TestNGReporter
/**
* Constructs a new instance that will listen to
* test updates from a {@link org.testng.TestNG} class instance.
- * <br>
- * <br>It is assumed that the requisite {@link org.testng.TestNG#addListener(ITestListener)}
- * method call has already associated with this instance <i>before</i> the test
- * suite is run.
*
* @param reportManager Instance to report suite status to
*/
diff --git a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java
index b73b9bacd..ab187b6d5 100644
index b73b9bacd..6ab5a626d 100644
--- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java
+++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java
@@ -57,7 +57,7 @@ public void configure(TestNG testng, Map<String, String> options) throws TestSet
@ -32,15 +275,29 @@ index b73b9bacd..ab187b6d5 100644
configureInstance(testng, options);
// TODO: we should have the Profile so that we can decide if this is needed or not
- testng.setListenerClasses(loadListenerClasses(listeners));
+ testng.setListenerClasses((List)loadListenerClasses(listeners));
+ testng.setListenerClasses((List) loadListenerClasses(listeners));
}
@Override
diff --git a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNGMapConfigurator.java b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNGMapConfigurator.java
index d91e76afc..06dbd2316 100755
index d91e76afc..4bb4fe0b0 100755
--- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNGMapConfigurator.java
+++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNGMapConfigurator.java
@@ -71,7 +71,7 @@ protected void configureThreadCount(XmlSuite suite, Map<String, String> options)
@@ -33,12 +33,7 @@
/**
* TestNG configurator for 5.3+ versions. TestNG exposes a {@link org.testng.TestNG#configure(java.util.Map)} method.
- * All supported TestNG options are passed in String format, except
- * {@link org.testng.TestNGCommandLineArgs#LISTENER_COMMAND_OPT} which is {@link java.util.List List&gt;Class&lt;},
- * {@link org.testng.TestNGCommandLineArgs#JUNIT_DEF_OPT} which is a {@link Boolean},
- * {@link org.testng.TestNGCommandLineArgs#SKIP_FAILED_INVOCATION_COUNT_OPT} which is a {@link Boolean},
- * {@link org.testng.TestNGCommandLineArgs#OBJECT_FACTORY_COMMAND_OPT} which is a {@link Class},
- * {@link org.testng.TestNGCommandLineArgs#REPORTERS_LIST} which is a {@link java.util.List List&gt;ReporterConfig&lt;}.
+ * All supported TestNG options are passed in String format.
* <br>
* Test classes and/or suite files are not passed along as options parameters, but configured separately.
*
@@ -71,7 +66,7 @@ protected void configureThreadCount(XmlSuite suite, Map<String, String> options)
protected void configureParallel(XmlSuite suite, Map<String, String> options) throws TestSetFailedException {
String parallel = options.get(PARALLEL_PROP);
if (parallel != null) {
@ -49,6 +306,52 @@ index d91e76afc..06dbd2316 100755
}
}
diff --git a/surefire-providers/surefire-testng/src/test/java/org/apache/maven/surefire/testng/TestNGReporterTest.java b/surefire-providers/surefire-testng/src/test/java/org/apache/maven/surefire/testng/TestNGReporterTest.java
index 514ecf9f8..5b201d765 100644
--- a/surefire-providers/surefire-testng/src/test/java/org/apache/maven/surefire/testng/TestNGReporterTest.java
+++ b/surefire-providers/surefire-testng/src/test/java/org/apache/maven/surefire/testng/TestNGReporterTest.java
@@ -129,7 +129,7 @@ public void testOnTestFailure() {
ITestResult testResult = mock(ITestResult.class);
when(testResult.getThrowable()).thenReturn(stackTrace);
- when(cls.getRealClass()).thenReturn(getClass());
+ when((Object) cls.getRealClass()).thenReturn(getClass());
when(testResult.getTestClass()).thenReturn(cls);
when(testResult.getMethod()).thenReturn(method);
when(testResult.getName()).thenReturn("myTest");
@@ -200,7 +200,7 @@ public void testOnTestFailedButWithinSuccessPercentage() {
ITestResult testResult = mock(ITestResult.class);
when(testResult.getThrowable()).thenReturn(stackTrace);
- when(cls.getRealClass()).thenReturn(getClass());
+ when((Object) cls.getRealClass()).thenReturn(getClass());
when(testResult.getTestClass()).thenReturn(cls);
when(testResult.getMethod()).thenReturn(method);
when(testResult.getName()).thenReturn("myTest");
diff --git a/surefire-providers/surefire-testng/src/test/java/org/apache/maven/surefire/testng/conf/TestNGMapConfiguratorTest.java b/surefire-providers/surefire-testng/src/test/java/org/apache/maven/surefire/testng/conf/TestNGMapConfiguratorTest.java
index 097a74d1e..8b34db85d 100755
--- a/surefire-providers/surefire-testng/src/test/java/org/apache/maven/surefire/testng/conf/TestNGMapConfiguratorTest.java
+++ b/surefire-providers/surefire-testng/src/test/java/org/apache/maven/surefire/testng/conf/TestNGMapConfiguratorTest.java
@@ -24,7 +24,7 @@
import junit.framework.TestCase;
import org.apache.maven.surefire.api.testset.TestSetFailedException;
-import org.testng.ReporterConfig;
+import org.testng.internal.ReporterConfig;
/**
* @author Kristian Rosenvold
@@ -62,8 +62,8 @@ public void testGroupByInstances() throws Exception {
public void testReporter() throws Exception {
Map<String, Object> convertedOptions = getConvertedOptions("reporter", "classname");
- List<ReporterConfig> reporter = (List) convertedOptions.get("-reporterslist");
- ReporterConfig reporterConfig = reporter.get(0);
+ String reporter = (String) convertedOptions.get("-reporterslist");
+ ReporterConfig reporterConfig = ReporterConfig.deserialize(reporter);
assertEquals("classname", reporterConfig.getClassName());
}
--
2.46.1

1972
0002-Unshade-surefire.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -22,50 +22,59 @@ Thu Oct 3 14:33:33 UTC 2024 - Fridrich Strba <fstrba@suse.com>
+ SUREFIRE-2161: Align Mojo class names and output names
- Upgrade to 3.4.0
* Bug
+ SUREFIRE-2251: [REGRESSION] java.lang.NoSuchMethodException:
+ SUREFIRE-2251: [REGRESSION] java.lang.NoSuchMethodException:
org.apache.maven.plugin.surefire.StartupReportConfiguration
.<init>
+ SUREFIRE-2253: [REGRESSION] Bump
org.apache.commons:commons-compress from 1.26.0 to 1.26.1
causes hang
* Improvement
+ SUREFIRE-1385: System properties defined in the Surefire and
+ SUREFIRE-1385: System properties defined in the Surefire and
Failsafe plugin configuration should override user properties
- Upgrade to 3.3.1
* Bug
+ SUREFIRE-2105: Failsafe report size increased with version
+ SUREFIRE-2105: Failsafe report size increased with version
upgrade from 2.17 to 2.22.2
+ SUREFIRE-2242: Plain test report does not include names of the
+ SUREFIRE-2242: Plain test report does not include names of the
skipped tests
+ SUREFIRE-2250: Surefire Test Report Schema properties element
+ SUREFIRE-2250: Surefire Test Report Schema properties element
is not consistent with the code
* Improvement
+ SUREFIRE-1360: Ability to disable properties for successfully
+ SUREFIRE-1360: Ability to disable properties for successfully
passed tests
+ SUREFIRE-1934: Ability to disable system-out/system-err for
+ SUREFIRE-1934: Ability to disable system-out/system-err for
successfully passed tests
+ SUREFIRE-2124: Avoid creating unnecessary target files for pom
+ SUREFIRE-2124: Avoid creating unnecessary target files for pom
projects
+ SUREFIRE-2249: Doc for 'properties' parameter does not mention
+ SUREFIRE-2249: Doc for 'properties' parameter does not mention
JUnit
- Upgrade to 3.3.0
* Bug
+ SUREFIRE-1939: Build fails if java.home has <=2 path
components
+ SUREFIRE-2232: [REGRESSION] StatelessXmlReporter fails to
+ SUREFIRE-2232: [REGRESSION] StatelessXmlReporter fails to
process failed result without a throwable
+ SUREFIRE-2240: Using JUnit BOM prevents upgrading the engine
+ SUREFIRE-2240: Using JUnit BOM prevents upgrading the engine
version via plugin dependency
* Improvement
+ SUREFIRE-2248: Make "type" attribute on failures and errors in
+ SUREFIRE-2248: Make "type" attribute on failures and errors in
(surefire|failsafe)-test-report schema optional
* Test
+ SUREFIRE-2141: Surefire 3.0.0-M8 tests don't pass on Mac M1
+ SUREFIRE-2141: Surefire 3.0.0-M8 tests don't pass on Mac M1
(Surefire1295AttributeJvmCrashesToTestsIT)
* Task
+ SUREFIRE-2244: Make IT for SUREFIRE-1295 reliable
+ SUREFIRE-2246: Clean up dependencies reported by
+ SUREFIRE-2246: Clean up dependencies reported by
dependencies:analyze
- Modified patches:
* maven-surefire-bootstrap-resources.patch
+ regenerate from non-bootstrap build
* 0001-Port-to-TestNG-7.4.0.patch
+ rediff and augment to make the test pass in upstream evironment
- Added patch:
* 0002-Unshade-surefire.patch
+ remove the use of the shaded surefire-shared-utils artifact
in favour of direct use of the dependencies
-------------------------------------------------------------------
Wed Apr 10 10:54:02 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -28,6 +28,7 @@ Source0: %{base_name}-%{version}.tar.xz
Source1: https://www.apache.org/licenses/LICENSE-2.0.txt
Source2: https://www.eclipse.org/legal/cpl-v10.html
Patch0: 0001-Port-to-TestNG-7.4.0.patch
Patch1: 0002-Unshade-surefire.patch
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
@ -112,6 +113,7 @@ Javadoc for %{name}.
cp -p %{SOURCE1} %{SOURCE2} .
%patch -P 0 -p1
%patch -P 1 -p1
# Disable strict doclint
sed -i /-Xdoclint:all/d pom.xml
@ -125,42 +127,6 @@ sed -i /-Xdoclint:all/d pom.xml
# Complains
%pom_remove_plugin -r :apache-rat-plugin
# Unshade
%pom_disable_module surefire-shared-utils
%pom_remove_dep -r :surefire-shared-utils
find -name *.java -exec sed -i -e s/org.apache.maven.surefire.shared.utils/org.apache.maven.shared.utils/ -e s/org.apache.maven.surefire.shared.io/org.apache.commons.io/ -e s/org.apache.maven.surefire.shared.lang3/org.apache.commons.lang3/ -e s/org.apache.maven.surefire.shared.compress/org.apache.commons.compress/ {} \;
for i in \
maven-failsafe-plugin \
maven-surefire-common \
maven-surefire-report-plugin \
surefire-api \
surefire-booter \
surefire-extensions-api \
surefire-providers/common-java5 \
surefire-providers/common-junit4 \
surefire-providers/common-junit48 \
surefire-providers/surefire-junit-platform \
surefire-providers/surefire-testng \
surefire-report-parser; do
%pom_add_dep org.apache.maven.shared:maven-shared-utils ${i}
%pom_change_dep org.apache.maven.shared:maven-shared-utils ::- ${i}
done
for i in \
maven-failsafe-plugin \
maven-surefire-common \
surefire-api \
surefire-booter \
surefire-providers/surefire-junit-platform; do
%pom_add_dep org.apache.commons:commons-lang3 ${i}
%pom_change_dep org.apache.commons:commons-lang3 ::- ${i}
done
%pom_add_dep org.apache.commons:commons-compress maven-surefire-common
%pom_change_dep org.apache.commons:commons-compress ::- maven-surefire-common
%pom_disable_module surefire-shadefire
%pom_remove_dep -r :surefire-shadefire

View File

@ -22,50 +22,59 @@ Thu Oct 3 14:33:33 UTC 2024 - Fridrich Strba <fstrba@suse.com>
+ SUREFIRE-2161: Align Mojo class names and output names
- Upgrade to 3.4.0
* Bug
+ SUREFIRE-2251: [REGRESSION] java.lang.NoSuchMethodException:
+ SUREFIRE-2251: [REGRESSION] java.lang.NoSuchMethodException:
org.apache.maven.plugin.surefire.StartupReportConfiguration
.<init>
+ SUREFIRE-2253: [REGRESSION] Bump
org.apache.commons:commons-compress from 1.26.0 to 1.26.1
causes hang
* Improvement
+ SUREFIRE-1385: System properties defined in the Surefire and
+ SUREFIRE-1385: System properties defined in the Surefire and
Failsafe plugin configuration should override user properties
- Upgrade to 3.3.1
* Bug
+ SUREFIRE-2105: Failsafe report size increased with version
+ SUREFIRE-2105: Failsafe report size increased with version
upgrade from 2.17 to 2.22.2
+ SUREFIRE-2242: Plain test report does not include names of the
+ SUREFIRE-2242: Plain test report does not include names of the
skipped tests
+ SUREFIRE-2250: Surefire Test Report Schema properties element
+ SUREFIRE-2250: Surefire Test Report Schema properties element
is not consistent with the code
* Improvement
+ SUREFIRE-1360: Ability to disable properties for successfully
+ SUREFIRE-1360: Ability to disable properties for successfully
passed tests
+ SUREFIRE-1934: Ability to disable system-out/system-err for
+ SUREFIRE-1934: Ability to disable system-out/system-err for
successfully passed tests
+ SUREFIRE-2124: Avoid creating unnecessary target files for pom
+ SUREFIRE-2124: Avoid creating unnecessary target files for pom
projects
+ SUREFIRE-2249: Doc for 'properties' parameter does not mention
+ SUREFIRE-2249: Doc for 'properties' parameter does not mention
JUnit
- Upgrade to 3.3.0
* Bug
+ SUREFIRE-1939: Build fails if java.home has <=2 path
components
+ SUREFIRE-2232: [REGRESSION] StatelessXmlReporter fails to
+ SUREFIRE-2232: [REGRESSION] StatelessXmlReporter fails to
process failed result without a throwable
+ SUREFIRE-2240: Using JUnit BOM prevents upgrading the engine
+ SUREFIRE-2240: Using JUnit BOM prevents upgrading the engine
version via plugin dependency
* Improvement
+ SUREFIRE-2248: Make "type" attribute on failures and errors in
+ SUREFIRE-2248: Make "type" attribute on failures and errors in
(surefire|failsafe)-test-report schema optional
* Test
+ SUREFIRE-2141: Surefire 3.0.0-M8 tests don't pass on Mac M1
+ SUREFIRE-2141: Surefire 3.0.0-M8 tests don't pass on Mac M1
(Surefire1295AttributeJvmCrashesToTestsIT)
* Task
+ SUREFIRE-2244: Make IT for SUREFIRE-1295 reliable
+ SUREFIRE-2246: Clean up dependencies reported by
+ SUREFIRE-2246: Clean up dependencies reported by
dependencies:analyze
- Modified patches:
* maven-surefire-bootstrap-resources.patch
+ regenerate from non-bootstrap build
* 0001-Port-to-TestNG-7.4.0.patch
+ rediff and augment to make the test pass in upstream evironment
- Added patch:
* 0002-Unshade-surefire.patch
+ remove the use of the shaded surefire-shared-utils artifact
in favour of direct use of the dependencies
-------------------------------------------------------------------
Wed Apr 10 10:54:02 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -28,6 +28,7 @@ Source0: %{base_name}-%{version}.tar.xz
Source1: https://www.apache.org/licenses/LICENSE-2.0.txt
Source2: https://www.eclipse.org/legal/cpl-v10.html
Patch0: 0001-Port-to-TestNG-7.4.0.patch
Patch1: 0002-Unshade-surefire.patch
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
@ -54,6 +55,7 @@ Javadoc for %{name}.
cp -p %{SOURCE1} %{SOURCE2} .
%patch -P 0 -p1
%patch -P 1 -p1
# Disable strict doclint
sed -i /-Xdoclint:all/d pom.xml
@ -67,42 +69,6 @@ sed -i /-Xdoclint:all/d pom.xml
# Complains
%pom_remove_plugin -r :apache-rat-plugin
# Unshade
%pom_disable_module surefire-shared-utils
%pom_remove_dep -r :surefire-shared-utils
find -name *.java -exec sed -i -e s/org.apache.maven.surefire.shared.utils/org.apache.maven.shared.utils/ -e s/org.apache.maven.surefire.shared.io/org.apache.commons.io/ -e s/org.apache.maven.surefire.shared.lang3/org.apache.commons.lang3/ -e s/org.apache.maven.surefire.shared.compress/org.apache.commons.compress/ {} \;
for i in \
maven-failsafe-plugin \
maven-surefire-common \
maven-surefire-report-plugin \
surefire-api \
surefire-booter \
surefire-extensions-api \
surefire-providers/common-java5 \
surefire-providers/common-junit4 \
surefire-providers/common-junit48 \
surefire-providers/surefire-junit-platform \
surefire-providers/surefire-testng \
surefire-report-parser; do
%pom_add_dep org.apache.maven.shared:maven-shared-utils ${i}
%pom_change_dep org.apache.maven.shared:maven-shared-utils ::- ${i}
done
for i in \
maven-failsafe-plugin \
maven-surefire-common \
surefire-api \
surefire-booter \
surefire-providers/surefire-junit-platform; do
%pom_add_dep org.apache.commons:commons-lang3 ${i}
%pom_change_dep org.apache.commons:commons-lang3 ::- ${i}
done
%pom_add_dep org.apache.commons:commons-compress maven-surefire-common
%pom_change_dep org.apache.commons:commons-compress ::- maven-surefire-common
%pom_disable_module surefire-shadefire
%pom_remove_dep -r :surefire-shadefire

View File

@ -22,53 +22,60 @@ Thu Oct 3 14:33:33 UTC 2024 - Fridrich Strba <fstrba@suse.com>
+ SUREFIRE-2161: Align Mojo class names and output names
- Upgrade to 3.4.0
* Bug
+ SUREFIRE-2251: [REGRESSION] java.lang.NoSuchMethodException:
+ SUREFIRE-2251: [REGRESSION] java.lang.NoSuchMethodException:
org.apache.maven.plugin.surefire.StartupReportConfiguration
.<init>
+ SUREFIRE-2253: [REGRESSION] Bump
org.apache.commons:commons-compress from 1.26.0 to 1.26.1
causes hang
* Improvement
+ SUREFIRE-1385: System properties defined in the Surefire and
+ SUREFIRE-1385: System properties defined in the Surefire and
Failsafe plugin configuration should override user properties
- Upgrade to 3.3.1
* Bug
+ SUREFIRE-2105: Failsafe report size increased with version
+ SUREFIRE-2105: Failsafe report size increased with version
upgrade from 2.17 to 2.22.2
+ SUREFIRE-2242: Plain test report does not include names of the
+ SUREFIRE-2242: Plain test report does not include names of the
skipped tests
+ SUREFIRE-2250: Surefire Test Report Schema properties element
+ SUREFIRE-2250: Surefire Test Report Schema properties element
is not consistent with the code
* Improvement
+ SUREFIRE-1360: Ability to disable properties for successfully
+ SUREFIRE-1360: Ability to disable properties for successfully
passed tests
+ SUREFIRE-1934: Ability to disable system-out/system-err for
+ SUREFIRE-1934: Ability to disable system-out/system-err for
successfully passed tests
+ SUREFIRE-2124: Avoid creating unnecessary target files for pom
+ SUREFIRE-2124: Avoid creating unnecessary target files for pom
projects
+ SUREFIRE-2249: Doc for 'properties' parameter does not mention
+ SUREFIRE-2249: Doc for 'properties' parameter does not mention
JUnit
- Upgrade to 3.3.0
* Bug
+ SUREFIRE-1939: Build fails if java.home has <=2 path
components
+ SUREFIRE-2232: [REGRESSION] StatelessXmlReporter fails to
+ SUREFIRE-2232: [REGRESSION] StatelessXmlReporter fails to
process failed result without a throwable
+ SUREFIRE-2240: Using JUnit BOM prevents upgrading the engine
+ SUREFIRE-2240: Using JUnit BOM prevents upgrading the engine
version via plugin dependency
* Improvement
+ SUREFIRE-2248: Make "type" attribute on failures and errors in
+ SUREFIRE-2248: Make "type" attribute on failures and errors in
(surefire|failsafe)-test-report schema optional
* Test
+ SUREFIRE-2141: Surefire 3.0.0-M8 tests don't pass on Mac M1
+ SUREFIRE-2141: Surefire 3.0.0-M8 tests don't pass on Mac M1
(Surefire1295AttributeJvmCrashesToTestsIT)
* Task
+ SUREFIRE-2244: Make IT for SUREFIRE-1295 reliable
+ SUREFIRE-2246: Clean up dependencies reported by
+ SUREFIRE-2246: Clean up dependencies reported by
dependencies:analyze
- Modified patch:
- Modified patches:
* maven-surefire-bootstrap-resources.patch
+ regenerate from non-bootstrap build
* 0001-Port-to-TestNG-7.4.0.patch
+ rediff and augment to make the test pass in upstream
environment
- Added patch:
* 0002-Unshade-surefire.patch
+ remove the use of the shaded surefire-shared-utils artifact
in favour of direct use of the dependencies
-------------------------------------------------------------------
Mon Jun 10 19:00:07 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -28,6 +28,7 @@ Source1: https://www.apache.org/licenses/LICENSE-2.0.txt
Source2: https://www.eclipse.org/legal/cpl-v10.html
Source10: %{name}-build.tar.xz
Patch0: 0001-Port-to-TestNG-7.4.0.patch
Patch1: 0002-Unshade-surefire.patch
Patch10: %{name}-bootstrap-resources.patch
BuildRequires: ant
BuildRequires: apache-commons-compress
@ -140,6 +141,7 @@ Javadoc for %{name}.
cp -p %{SOURCE1} %{SOURCE2} .
%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 10 -p1
# Disable strict doclint
@ -154,42 +156,6 @@ sed -i /-Xdoclint:all/d pom.xml
# Complains
%pom_remove_plugin -r :apache-rat-plugin
# Unshade
%pom_disable_module surefire-shared-utils
%pom_remove_dep -r :surefire-shared-utils
find -name *.java -exec sed -i -e s/org.apache.maven.surefire.shared.utils/org.apache.maven.shared.utils/ -e s/org.apache.maven.surefire.shared.io/org.apache.commons.io/ -e s/org.apache.maven.surefire.shared.lang3/org.apache.commons.lang3/ -e s/org.apache.maven.surefire.shared.compress/org.apache.commons.compress/ {} \;
for i in \
maven-failsafe-plugin \
maven-surefire-common \
maven-surefire-report-plugin \
surefire-api \
surefire-booter \
surefire-extensions-api \
surefire-providers/common-java5 \
surefire-providers/common-junit4 \
surefire-providers/common-junit48 \
surefire-providers/surefire-junit-platform \
surefire-providers/surefire-testng \
surefire-report-parser; do
%pom_add_dep org.apache.maven.shared:maven-shared-utils ${i}
%pom_change_dep org.apache.maven.shared:maven-shared-utils ::- ${i}
done
for i in \
maven-failsafe-plugin \
maven-surefire-common \
surefire-api \
surefire-booter \
surefire-providers/surefire-junit-platform; do
%pom_add_dep org.apache.commons:commons-lang3 ${i}
%pom_change_dep org.apache.commons:commons-lang3 ::- ${i}
done
%pom_add_dep org.apache.commons:commons-compress maven-surefire-common
%pom_change_dep org.apache.commons:commons-compress ::- maven-surefire-common
%pom_disable_module surefire-shadefire
%pom_remove_dep -r :surefire-shadefire