dependabot[bot] opened a new pull request, #3638:
URL: https://github.com/apache/maven-surefire/pull/3638

   Bumps [org.testng:testng](https://github.com/cbeust/testng) from 6.14.3 to 
7.5.1.
   <details>
   <summary>Release notes</summary>
   <p><em>Sourced from <a 
href="https://github.com/cbeust/testng/releases";>org.testng:testng's 
releases</a>.</em></p>
   <blockquote>
   <h2>TestNG v7.5.1</h2>
   <h2>What's Changed</h2>
   <ul>
   <li>Cherrypick Zip Slip Vulnerability to 7.5 release by <a 
href="https://github.com/prashil-g";><code>@​prashil-g</code></a> in <a 
href="https://redirect.github.com/cbeust/testng/pull/2899";>cbeust/testng#2899</a></li>
   </ul>
   <h2>New Contributors</h2>
   <ul>
   <li><a href="https://github.com/prashil-g";><code>@​prashil-g</code></a> made 
their first contribution in <a 
href="https://redirect.github.com/cbeust/testng/pull/2899";>cbeust/testng#2899</a></li>
   </ul>
   <p><strong>Full Changelog</strong>: <a 
href="https://github.com/cbeust/testng/compare/7.5...7.5.1";>https://github.com/cbeust/testng/compare/7.5...7.5.1</a></p>
   </blockquote>
   </details>
   <details>
   <summary>Changelog</summary>
   <p><em>Sourced from <a 
href="https://github.com/testng-team/testng/blob/master/CHANGES.txt";>org.testng:testng's
 changelog</a>.</em></p>
   <blockquote>
   <p>Current (7.13.0)
   Documentation: GITHUB-2947: The javadoc of alwaysRun on the configuration 
annotations no longer says that an after method needs it to run after a failed 
test method. On an after method, alwaysRun lets the method run after a failure 
or a skip of an earlier configuration method, but not when the method has 
enabled = false. A failed test method does not stop an after method from 
running. The javadoc also says that alwaysRun makes an after method other than 
afterGroups ignore group filtering, as on a before method (GITHUB-526) (Sharang 
Gupta)
   Fixed: GITHUB-3440: On JDK 17, a parallel data provider on the shared global 
thread pool (use-global-thread-pool) no longer runs every row on one thread now 
and then. The data-driven method submits its rows to its own ForkJoinPool queue 
and then joins them. It joined the oldest row first, which JDK 17's 
ForkJoinPool removes from the end that other workers steal from, shifting every 
later row down one slot. A worker woken to steal could see the queue as empty 
during that shift and go back to sleep, and nothing woke it again, so the 
calling worker ran all the rows one after another. The rows are now joined 
newest first, which leaves the stolen end untouched. JDK 18 has the same shift; 
JDK 25 does not, and the reproducer showed no serial runs there. The 
GITHUB-3081 tests that caught this now report how many threads ran the rows, 
and their rows sleep 20-30 ms instead of 200-300 ms (Jyotheeswara Reddy Gottam)
   Fixed: GITHUB-3616: A test that a configuration skip of its own class skips 
now gets the exception of that skip. When a configuration method of another 
class in the same <!-- raw HTML omitted --> failed earlier, 
ExceptionUtils.getExceptionDetails read only the failed configurations, so the 
test got the exception of the other class's failure. When no failed 
configuration belongs to the test's own instance, it now looks for a skipped 
configuration of that instance before it falls back to the first failed 
configuration. org.testng.conffailure.issue3616.Issue3616Test covers a failed 
<a href="https://github.com/BeforeClass";><code>@​BeforeClass</code></a> 
followed by a <a 
href="https://github.com/BeforeClass";><code>@​BeforeClass</code></a> that 
throws SkipException (David Asulin)
   Changed: GITHUB-3508: XMLStringBuffer.addBuffer skips the extra writer 
buffers for small content that is still in memory. The new 
IBuffer.getInMemorySize method defaults to -1, so buffers keep streaming unless 
they report their resident size (Kayokoi)
   New: GITHUB-1226: The command line can now select test classes by package, 
as <!-- raw HTML omitted --> does in testng.xml, with the new -testpackages 
option. &quot;-testpackages com.acme.login&quot; runs the test classes of 
com.acme.login, and a name that ends in .* also runs those of the sub-packages; 
several packages are separated by commas. The packages go into the default test 
of the default suite, next to the classes of -testclass, and -groups and 
-excludegroups can filter them without a -testclass. A value that names no 
package, such as &quot;-testpackages ' , '&quot;, is rejected like an empty 
-testclass. The Java API has the matching TestNG.setTestPackages(List<!-- raw 
HTML omitted -->), and TestNG.configure(Map) reads -testpackages too. 
TestPackageCommandLineTest covers an exact package, the .* form, a list, the 
combination with -testclass and -groups, and the Java API (Jyotheeswara Reddy 
Gottam)
   Fixed: GITHUB-3564: DependencyMap.getMethodsThatBelongTo now returns each 
test method of the matching groups once. It returned each method twice, and 
once more for each further matching group that the method is in. A TestNG run 
was not affected, because TestNG puts the result into a set or a map 
(Jyotheeswara Reddy Gottam)
   Fixed: GITHUB-3615: Restore org.testng.ConversionUtils and the 
org.testng.Converter entry point for callers compiled against 7.12.0. The new 
priority methods on ITestOrConfiguration and lazy methods on IFactoryAnnotation 
now have defaults, so existing implementations keep working. The defaults 
return priority zero and Lazy.UNSET; implementations that store these settings 
still override them (Kayokoi)
   Fixed: GITHUB-3565: The command line, TestNG.configure(Map) and 
TestNG.configure(CommandLineArgs) now report a test whose data provider throws 
as skipped, as the Java API does, unless 
-propagateDataProviderFailureAsTestFailure is given. The option's field 
defaults to false, and CliConfigurer and TestNG.configure(CommandLineArgs) 
turned the setting on for any value that was not null, so false turned it on 
too and the option could not be turned off. Only true turns it on now. 
TestNG.configure(Map), which Maven Surefire calls, also reads 
-propagateDataProviderFailureAsTestFailure from the map now, so a Surefire user 
can still turn the setting on. It is listed under Possible backward 
incompatible changes below (Jyotheeswara Reddy Gottam)
   Fixed: GITHUB-2448: An <a 
href="https://github.com/After";><code>@​After</code></a> method with alwaysRun 
= true and dependsOnMethods is now skipped when a configuration method it 
depends on failed or was skipped. alwaysRun lets a teardown run past earlier 
failures, and that bypass also skipped its own dependency check, so a dependent 
teardown ran even after the teardown it depends on had failed. The bypass now 
covers unrelated failures only: an alwaysRun teardown whose dependencies passed 
still runs after a failed setup. <a 
href="https://github.com/Before";><code>@​Before</code></a> methods already 
behave this way since GITHUB-1622. org.testng.configuration.issue2448.IssueTest 
also covers the <a href="https://github.com/Before";><code>@​Before</code></a> 
cases and the order that dependsOnMethods sets (Jyotheeswara Reddy Gottam)
   Fixed: GITHUB-3440: On JDK 17, a parallel data provider on the shared global 
thread pool (use-global-thread-pool) no longer runs every row on one thread now 
and then. The rows are now joined newest first, which avoids a race in JDK 17's 
ForkJoinPool (Jyotheeswara Reddy Gottam)
   New: GITHUB-3324: The TestNG jar ships an OASIS XML catalog, 
org/xmlresolver/catalog.xml, that maps the eight supported DTD identifiers 
(https and http, testng.org and beust.com/testng, 1.0 and 1.1) onto the 
testng-1.1.dtd in the jar. Tools that read a testng.xml on their own, such as 
xmllint or Saxon, can then validate it without the network. xmlresolver finds 
the catalog on the classpath when xml.catalog.classpathCatalogs is enabled; 
other resolvers, such as the JDK's javax.xml.catalog, are pointed at it. 
Whether an IDE reads a catalog from a dependency jar is unverified; an IDE can 
use the catalog once it is extracted, as the documentation describes. 
XmlCatalogTest checks that every entry points at an existing resource, that it 
maps exactly the eight supported identifiers, and that they map to the DTD 
TestNG uses; XmlCatalogInShadedJarTest validates a suite with the catalog and 
DTD read from the published testng.jar. docs/XML_CATALOG.md describes how to 
enable it (Jyotheeswara 
 Reddy Gottam)
   Fixed: GITHUB-3570: When the command line runner is on the class path but 
fails to load, for example because jcommander is missing, TestNG.main now 
prints the chain of causes after the message. On some JDKs the 
NoClassDefFoundError was an Error that CliRunners did not catch, so the JVM 
printed a raw stack trace instead of the message. It now catches LinkageError 
too (ItsDeadlyProgrammer)
   Fixed: GITHUB-3569: TestNG.reportRunFailure() reads the -verbose level of 
the run that failed. Without -verbose, it reads the verbose level that the 
suites in the XML share, and the default level when they differ. It used to 
read the static level of the last TestRunner, so a run that failed before it 
created a TestRunner printed the stack trace, or not, by the verbose level of 
an earlier run in the same JVM (ItsDeadlyProgrammer)
   Fixed: GITHUB-3568: The command line prints to standard error when it 
ignores a -methodselectors value that is not in the format Selector:priority, 
and when it cannot find the class of a -reporter. Without an SLF4J provider 
both were silent, and the run went on with exit status 0 (ItsDeadlyProgrammer)
   Fixed: GITHUB-3568: The command line prints to standard error when it 
ignores a -methodselectors value that is not in the format Selector:priority, 
and when it cannot find the class of a -reporter. Without an SLF4J provider 
both were silent, and the run went on with exit status 0 (Harshvardhan Singh)
   Fixed: GITHUB-3563: TestNG.addListener(Object) throws TestNGException when 
the object is not a listener. It used to print the command line usage and call 
System.exit(1), so a program that embeds TestNG stopped with it. A setter 
throws. Only TestNG.main turns a bad value into an exit code (Burak Kalaycı)
   Fixed: GITHUB-3576: ITestResult.getFactoryParameters() now returns the <a 
href="https://github.com/Factory";><code>@​Factory</code></a> parameters for the 
invocations of a method with a threadPoolSize greater than 1. Each of those 
invocations runs on a clone of the method. BaseTestMethod.cloneInstance() gave 
the clone a new wrapper around the plain instance, so the clone lost the 
IParameterInfo that holds the factory parameters. The clone now keeps the 
wrapper of the original method (ItsDeadlyProgrammer)
   Fixed: GITHUB-3577: At a verbose level of 2 or more, the log line that 
TestTaskExecutor writes for a <!-- raw HTML omitted --> that runs its methods 
in parallel now shows the name of the <!-- raw HTML omitted -->. The line used 
to show the time-out twice (ItsDeadlyProgrammer)
   Fixed: GITHUB-3566: TestNG.run() records status 1 when it throws a 
TestNGException, including unreadable suites, missing classes or listeners, and 
duplicate test names. The CLI prints diagnostics, causes and stack traces to 
stderr. A run with no tests still reports status 8 when a configuration method 
fails (Krishnan Mahadevan and Arthur031221)
   Fixed: GITHUB-3528: A resolver that throws while TestNG builds the arguments 
of one sequential data-provider row now fails that row and runs the later rows. 
The failure carries the row. The sequential path used to let the exception 
leave the row loop, so the later rows produced no result and the failure named 
no row. A row that does not fit the method still stops the sequential provider, 
as before. A parallel provider and a retry already failed only the affected row 
(Burak Kalaycı)
   Fixed: GITHUB-3533: A method-level configuration failure on one parallel 
data-provider row no longer skips a sibling row. The failure was keyed by the 
instance, the current invocation count and parameterInvocationCount. Parallel 
workers share the ITestNGMethod, and the iterator sets parameterInvocationCount 
to the last row before any worker runs, so every first attempt used one token. 
A <a href="https://github.com/BeforeMethod";><code>@​BeforeMethod</code></a> 
failure on row 0 then skipped row 1 under configFailurePolicy=CONTINUE, after 
row 1's own setup had passed. The token now uses the row index the worker was 
given. The invocation count in that token is captured when the invocation 
starts, not read again at lookup, because sibling workers increment the shared 
counter. A firstTimeOnly failure is stored on a shared key so every parallel 
row sees it under CONTINUE. The same index is what an <a 
href="https://github.com/AfterMethod";><code>@​AfterMethod</code></a> failure is 
reco
 rded under. org.testng.conffailure.issue3533.Issue3533Test covers two parallel 
rows (Burak Kalaycı)
   Fixed: GITHUB-3539: A pooled method whose instance id is not an index key no 
longer runs firstTimeOnly and lastTimeOnly configuration for every <a 
href="https://github.com/Factory";><code>@​Factory</code></a> instance. 
invokeTimeOnlyConfigurations skipped the instance filter when configInstanceId 
returned null. A WrappedTestNGMethod around a non-BaseTestMethod invents an id 
for the graph, and that id is not a key, so each pool walked every factory 
instance. One instance then ran its firstTimeOnly method once per pool, and 
another never ran it. lastTimeOnly ran for every instance on every pool. When 
the index id is missing, the invoker now keeps the object whose embedded 
instance matches the method. The comparison is equals, the same one 
method-configuration filtering uses. The index id still wins when the method 
has one (Burak Kalaycı)
   Fixed: GITHUB-3537: Dry run reports tests with expectedExceptions as passed 
without invoking them. The missing-exception check still applies to normal 
execution (Lev Shagalov)
   Fixed: GITHUB-3435: A <a 
href="https://github.com/Factory";><code>@​Factory</code></a> that declares <a 
href="https://github.com/BeforeMethod";><code>@​BeforeMethod</code></a> or <a 
href="https://github.com/AfterMethod";><code>@​AfterMethod</code></a> no longer 
scans every instance's configuration on each test invocation. TestClass indexes 
those methods by instance id, the same way it already indexes <a 
href="https://github.com/BeforeClass";><code>@​BeforeClass</code></a> and <a 
href="https://github.com/AfterClass";><code>@​AfterClass</code></a>. The invoker 
reads that index. The public flat accessors still return every instance (Burak 
Kalaycı)
   Fixed: GITHUB-3530: A later configuration failure for the same class 
instance no longer erases earlier records. ConfigInvoker kept one 
RecordedFailure per instance, so a parallel worker's teardown could replace 
another worker's setup failure. A retry on the later thread then ignored that 
replacement as its own and ran even though the earlier failure still applied. 
Each key now keeps the latest record per thread, which is what the retry filter 
needs, rather than appending every skipped configuration onto a 
CopyOnWriteArrayList. org.testng.conffailure.RetriedInvocationTest covers two 
parallel data-provider rows that force that order (Burak Kalaycı)
   Fixed: GITHUB-1622: alwaysRun on a <a 
href="https://github.com/Before";><code>@​Before</code></a> method no longer 
runs it after a previous configuration failed. The attribute is documented to 
mean two different things -- on a <a 
href="https://github.com/Before";><code>@​Before</code></a> method it lets the 
method run regardless of the groups it belongs to, on an <a 
href="https://github.com/After";><code>@​After</code></a> method it lets the 
method run even if a method invoked before it failed or was skipped -- and 
since 6.9.5 a <a href="https://github.com/Before";><code>@​Before</code></a> 
method had been getting both. The fix for GITHUB-420 had added the four 
getBefore*() terms to MethodHelper.isAlwaysRun, and ConfigInvoker read that one 
predicate for two independent decisions: whether a configuration of a <a 
href="https://github.com/Test";><code>@​Test</code></a>(enabled = false) class 
may still run, which is what GITHUB-420 needed, and whether it may run past a 
failure, w
 hich it did not. So a failing <a 
href="https://github.com/BeforeSuite";><code>@​BeforeSuite</code></a> -- which 
marks the whole suite failed -- was followed by every alwaysRun <a 
href="https://github.com/BeforeTest";><code>@​BeforeTest</code></a>, <a 
href="https://github.com/BeforeClass";><code>@​BeforeClass</code></a>, <a 
href="https://github.com/BeforeMethod";><code>@​BeforeMethod</code></a> and <a 
href="https://github.com/BeforeGroups";><code>@​BeforeGroups</code></a> of the 
run, and by every other alwaysRun <a 
href="https://github.com/BeforeSuite";><code>@​BeforeSuite</code></a>: the 
reporter's four-method class reported 4 configuration failures and 0 skips 
where 6.9.4 had reported 1 and 3. The failure bypass is now read from a 
separate predicate, MethodHelper.canBypassConfigurationFailure, which answers 
true for the after role only -- <a 
href="https://github.com/AfterSuite";><code>@​AfterSuite</code></a>, <a 
href="https://github.com/AfterTest";><code>@​AfterTest</code><
 /a>, <a href="https://github.com/AfterClass";><code>@​AfterClass</code></a>, <a 
href="https://github.com/AfterMethod";><code>@​AfterMethod</code></a> and <a 
href="https://github.com/AfterGroups";><code>@​AfterGroups</code></a> -- so 
those are unchanged and keep running after a failure. The role is the one 
TestNG runs the method in, not the merged annotation, so a method that carries 
both a <a 
href="https://github.com/BeforeMethod";><code>@​BeforeMethod</code></a> and an 
<a 
href="https://github.com/AfterMethod";><code>@​AfterMethod</code></a>(alwaysRun 
= true) is skipped as a setup and run as a teardown. A skipped setup still 
marks what it would have set up, so the tests that need it are skipped too, as 
they are when the setup does not say alwaysRun. The group meaning of alwaysRun 
on a <a href="https://github.com/Before";><code>@​Before</code></a> method is 
untouched, and so is the enabled decision GITHUB-420 covers. This is 
deliberately not tied to configFailurePolicy: an alwa
 ysRun <a 
href="https://github.com/BeforeMethod";><code>@​BeforeMethod</code></a> is 
skipped after a failed <a 
href="https://github.com/BeforeClass";><code>@​BeforeClass</code></a> under SKIP 
and under CONTINUE alike. It is listed under Possible backward incompatible 
changes below (Julien Herr)
   Fixed: A configuration method skipped because an earlier one failed no 
longer moves the level flags that decide where ignoreFailure is looked up. The 
skip went through the same bookkeeping as a failure, flags included, so a 
skipped <a 
href="https://github.com/BeforeMethod";><code>@​BeforeMethod</code></a> in one 
class made a later class's <a 
href="https://github.com/BeforeClass";><code>@​BeforeClass</code></a>(ignoreFailure
 = true) stop protecting that class: the lookup read the later class's <a 
href="https://github.com/BeforeMethod";><code>@​BeforeMethod</code></a> list 
instead of its <a 
href="https://github.com/BeforeClass";><code>@​BeforeClass</code></a> list, 
found no ignoreFailure there, and skipped the test. A skip still marks what the 
setup would have set up, so the tests that need it are skipped; only the flags 
are left to a failure. GITHUB-1622 above makes such skips far more frequent, 
since an alwaysRun <a 
href="https://github.com/Before";><code>@​Before</code></a> 
 method used to run instead (Julien Herr)
   Fixed: An attempt that retries a failed test method is no longer held back 
by what the failed attempt recorded, and by nothing else. TestInvoker already 
exempted the retried test method from every recorded configuration failure, but 
not its setup, so a retry whose <a 
href="https://github.com/AfterMethod";><code>@​AfterMethod</code></a> had failed 
ran the test method with no setup at all; and the exemption was a flag on the 
retry context, which MethodRunner hands to the data provider rows that follow, 
so those rows ran past their own configuration failures too. ConfigInvoker now 
numbers every failure it records, with the thread that recorded it; a retry 
takes the mark before it starts, and its setup, its test method and its 
teardown ignore the failures its own thread recorded up to that mark only -- 
which is what the attempt it retries recorded, since the retry runs on that 
attempt's thread right after it. A setup that fails during the retry still 
skips the setups and the test met
 hod after it; a failure another data provider row recorded on another thread 
before the retry started still counts, so the retry's setup and test method are 
skipped where the test method used to run without its setup; and the rows that 
follow the retry are back to reporting what they report when nothing is 
retried. Until the GITHUB-1622 fix in this release the missing setup was only 
reachable for a <a 
href="https://github.com/BeforeMethod";><code>@​BeforeMethod</code></a> without 
alwaysRun, since alwaysRun used to bypass the failure and hide it (Julien Herr)
   Fixed: GITHUB-3522: ignoreFailure on a <a 
href="https://github.com/BeforeMethod";><code>@​BeforeMethod</code></a> no 
longer lets a later class run a test after that class's own <a 
href="https://github.com/BeforeClass";><code>@​BeforeClass</code></a> failed. 
The flags that pick which configuration list to scan for ignoreFailure are now 
per test class and instance, keyed by the class under test, not the declaring 
type of the configuration method. A real <a 
href="https://github.com/BeforeMethod";><code>@​BeforeMethod</code></a> failure 
in class Z used to make class A's <a 
href="https://github.com/BeforeMethod";><code>@​BeforeMethod</code></a>(ignoreFailure
 = true) look like the failure that applied to A, so A.aTest ran with its setup 
skipped. The same leak happened across sibling subclasses that share a 
configuration method, across implementors of an interface default, and across 
<a href="https://github.com/Factory";><code>@​Factory</code></a> instances of 
one class. org.testng.
 conffailure.issue3522.Issue3522Test covers A alone, Z then A in one <!-- raw 
HTML omitted -->, the sibling and interface cases, and two factory instances 
(Burak Kalaycı)
   Fixed: GITHUB-3513: Under parallel=&quot;tests&quot;, a suite time-out that 
cancels a <!-- raw HTML omitted --> worker now reports the methods that did not 
return, and the run exits non-zero. invokeAll interrupts the worker and 
returns; a method that ignores interruption keeps running, runTest never stores 
a SuiteResult, and ExitCodeListener then sees the <!-- raw HTML omitted --> 
tags that finished -- so a suite that still has a method in flight exits 0 and 
writes no testng-failed.xml. After the pool returns, SuiteRunner waits a short 
interval for workers that respect interruption to record themselves, then fails 
every unfinished invocation with ThreadTimeoutException and stores the <!-- raw 
HTML omitted -->. The same suite with parallel=&quot;none&quot; already 
reported the method as failed. org.testng.timeout.issue3513.Issue3513Test 
covers a method that ignores interruption and one that stops when interrupted, 
each beside an empty <!-- raw HTML omitted --> that still passes (Bu
 rak Kalaycı)
   Fixed: org.testng.reporters.FileStringBuffer no longer throws a 
NullPointerException when the first thing appended to it is a string of 100 000 
characters or more. A string that size bypasses the in-memory builder and is 
written to the temporary file directly, and the file is created as the builder 
is flushed -- but flushToFile answers early when the builder is empty, which it 
is when nothing has been appended yet, so that path went straight on to write 
to a file it had just decided not to create. Appending anything at all first, 
however short, was enough to hide it. The file is now created where it is 
needed rather than as a side effect of a flush, and a buffer whose file cannot 
be created says so with an IllegalStateException naming it instead of failing 
as a null one frame later, which is how FileStringBuffer.toString already 
reports the same impossibility. org.testng.reporters.FileStringBufferTest, 
which had asserted nothing since it was written in 2013 and was listed in no su
 ite, now covers both readers -- toString and toWriter -- below the flush 
threshold, across it, and on either side of that direct-to-file size. Two 
silent failures in the same class go with it: a flush that could not write used 
to replace the in-memory builder anyway, so the characters it still held 
vanished from the middle of the document with nothing raised, and toWriter 
logged what toString has always thrown for, so a spilled buffer whose temporary 
file had gone answered an empty document instead. Both now raise 
IllegalStateException, which is what temporaryFile already did for the same 
class of fault. A failed spill is recorded rather than raised on the spot, and 
raised when the buffer is asked for its content: appending happens deep inside 
building a document -- for the JUnit report, inside a listener TestNG calls 
bare -- so raising there would end the run at whatever tag happened to 
overflow. And JUnitXMLReporter catches it, because it is an IResultListener2 
rather than an IRep
 orter: TestNG.generateReports wraps each reporter in its own try/catch, but 
TestRunner calls its listeners with nothing around them, so a report that could 
not be written would have cost the run and every other report with it. It loses 
its file and says so through its logger. The message on the way out no longer 
names the temporary file, since the same catch covers a buffer that never 
spilled and has none -- there the fault is the destination, which while 
index.html is being written is the likelier of the two. And a report that gives 
up part way leaves no file and says so through its logger, whatever it gave up 
with: Utils.writeUtf8File writes its prefix before the buffer, so index.html 
was left as a page header with no body and nothing to say why -- and the 
OutOfMemoryError this entry is about is an Error rather than a 
RuntimeException, so the case that mattered most was the one the removal 
missed. And the temporary file is written and read as UTF-8 rather than through 
the platform
  default charset: a character that charset could not encode was lost at spill 
time, before the explicitly UTF-8 page writer ever saw it, so a supplementary 
character in a report reached index.html as a question mark on a JDK whose 
default is not UTF-8 (Julien Herr)
   Fixed: GITHUB-1259, GITHUB-2334: index.html is no longer built by holding 
one panel of it in memory at a time. Every panel of the default HTML report 
writes into an XMLStringBuffer of its own -- backed, like the page it feeds, by 
a buffer that spills to a temporary file past 100 000 characters -- and used to 
hand that buffer to the page as a String, which read the whole file back and 
copied it once more for the regular expression that drops the characters XML 
1.0 does not allow. So a buffer whose reason to exist is not being held in 
memory was held in memory twice over, once per panel, and the largest of them 
grows with the result count: GITHUB-2334 ran out of heap in 
NavigatorPanel.generateMethodList listing the passed methods of a run of 500 
000, GITHUB-1259 in BaseMultiSuitePanel, both of them under a summary saying 
every test of the run had passed. The panels now stream their buffer into the 
page through the new XMLStringBuffer.addBuffer, which drops the same characters 
a slic
 e at a time, and TimesPanel writes its table a row at a time rather than 
building the whole of it as one String. On a run of 20 000 results whose report 
is 39 MB, generating it needed a 64 MB heap and now needs 28 MB; below that the 
limit is what the run itself retains, which is GITHUB-1979 and unchanged here. 
The page is identical, the order of what it lists included. 
org.testng.reporters.XMLStringBuffer.addBuffer(XMLStringBuffer) is new, and the 
panels of org.testng.reporters.jq write into a buffer BaseMultiSuitePanel owns, 
through a new package-private writeContent, rather than each building one and 
answering its String. BaseMultiSuitePanel.getContent(ISuite, XMLStringBuffer) 
stays where it is -- concrete now rather than abstract -- for callers outside 
the report, and is the one place left that materialises a panel. 
BaseMultiSuitePanel.getContent(ISuite, XMLStringBuffer) is final: generate no 
longer calls it, so an override outside the package decided nothing and would 
have been 
 skipped without a word. TimesPanel no longer adds each result's duration into 
its running total on every call, which made a second call to getContent report 
the suite as having run twice as long (Julien Herr)
   Fixed: GITHUB-2187: testng-results.xml now writes a parameter <!-- raw HTML 
omitted --> as <!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML 
omitted --> on one line, so XML consumers that read the element text get the 
parameter rather than the pretty-print whitespace around the CDATA (Burak 
Kalaycı)
   Fixed: GITHUB-1031: A data provider that supplies the wrong number or type 
of arguments now reports that mismatch. Count errors state the expected and 
actual counts. Type errors state that the types do not match. The matcher no 
longer claims the test method has no parameters (Burak Kalaycı)
   Fixed: GITHUB-3121: EmailableReporter2 now appends each test invocation's 
non-blank ITest custom name to the Java method name in the summary table and 
scenario headings. Configuration methods keep the Java method name (Burak 
Kalaycı)
   Fixed: GITHUB-2940: testng-failed.xml now includes passed members of a group 
that a skipped or failed test depends on. MethodHelper.getMethodsDependedUpon 
now adds those group members and walks each member's own method and group 
dependencies. The walk uses only direct graph predecessors. A rerun suite 
therefore keeps the full dependency closure the skipped test needs (Burak 
Kalaycı)
   Fixed: GITHUB-3234: A test class whose methods cannot be read because a 
referenced type is missing is no longer treated as if it had no TestNG 
annotations. TestNGClassFinder.isTestNGClass now throws TestNGException 
wrapping the NoClassDefFoundError when that class was named in the suite, so 
the class is reported rather than silently skipped. A class found through a 
package scan still returns false, as GITHUB-602, so an optional class with a 
missing type does not fail the scan. A missing type used only in a method body 
is still a test failure, as before (Burak Kalaycı)
   Fixed: GITHUB-3478: Report an empty DataProvider as a skipped test with 
EmptyDataProviderBehavior.SKIP by default, and provide 
EmptyDataProviderBehavior.IGNORE for backward compatibility, selectable on the 
command line with -emptydataproviderbehavior (Julien Herr)
   Fixed: GITHUB-2927: IMethodSelector.setTestMethods now receives the known 
test methods after they are bound to their ITestClass, and before selectors are 
consulted for test or configuration methods. A selector that snapshots the list 
sees the methods; includeMethod is never called first. (Burak Kalaycı)
   Fixed: GITHUB-3437: ClassHelper.getAvailableMethods now memoizes the 
hierarchy scan per class in a ClassValue, so data-provider and configuration 
lookups no longer rescan the same class on every call. Callers still receive a 
fresh set (Burak Kalaycı)
   Fixed: GITHUB-3239, GITHUB-2714: configuration-method inheritance is kept 
whenever the explicit dependency graph has no path between the two methods. A 
child <a href="https://github.com/BeforeClass";><code>@​BeforeClass</code></a> 
no longer runs between two base methods, including when it only has an 
unrelated groups= value, and a base <a 
href="https://github.com/AfterMethod";><code>@​AfterMethod</code></a> no longer 
runs before the child's. An inheritance edge is omitted when it would close a 
cycle with an existing dependsOnGroups or dependsOnMethods chain (Burak Kalaycı)
   Fixed: GITHUB-2333: skip module-info.class and META-INF/versions entries 
when discovering classes in a test jar (Burak Kalaycı)
   Fixed: GITHUB-2595: A programmatic IMethodSelector at priority 10 is no 
longer dropped as a duplicate of the built-in XmlMethodSelector. RunInfo stored 
selectors in a TreeSet ordered only by priority, so two descriptors with the 
same priority compared equal and one was discarded. Equal-priority selectors 
now keep insertion order (Burak Kalaycı)
   Fixed: GITHUB-3222: dependsOnMethods in a static nested test class now 
resolves sibling methods, including methods inherited onto that nested class. 
MethodHelper.findDependedUponMethods() used to drop every method whose class 
had an enclosing class, so the nested class never saw its own tests (Burak 
Kalaycı)
   Fixed: GITHUB-3388: XmlSuite.toXml() now reports an unnamed XmlDefine 
reached through a test-level <!-- raw HTML omitted --> with &quot;<!-- raw HTML 
omitted --> has no name&quot;, matching the unnamed XmlPackage path, instead of 
a bare NullPointerException from Properties.setProperty (Burak Kalaycı)
   Documentation: GITHUB-1346: <a 
href="https://github.com/BeforeGroups";><code>@​BeforeGroups</code></a> and <a 
href="https://github.com/AfterGroups";><code>@​AfterGroups</code></a> now state 
in their javadoc where they sit in the lifecycle. The group configuration runs 
inside the lifecycle of the class the group is entered and left from, not 
around it: <a 
href="https://github.com/BeforeClass";><code>@​BeforeClass</code></a> runs 
before <a 
href="https://github.com/BeforeGroups";><code>@​BeforeGroups</code></a>, and <a 
href="https://github.com/AfterGroups";><code>@​AfterGroups</code></a> before <a 
href="https://github.com/AfterClass";><code>@​AfterClass</code></a>. GITHUB-1346 
asked for the reverse -- <a 
href="https://github.com/BeforeTest";><code>@​BeforeTest</code></a> -&gt; <a 
href="https://github.com/BeforeGroups";><code>@​BeforeGroups</code></a> -&gt; <a 
href="https://github.com/BeforeClass";><code>@​BeforeClass</code></a>, and <a 
href="https://github.com/AfterClass";><c
 ode>@​AfterClass</code></a> -&gt; <a 
href="https://github.com/AfterGroups";><code>@​AfterGroups</code></a> -- on the 
reading that a group is declared on a <!-- raw HTML omitted --> and may span 
several classes, so it should be the outer scope. It cannot be one. A group is 
a selector over test methods, not a container of classes, and two shapes TestNG 
has always supported make the requested order undefined rather than merely 
different: a class whose methods alternate between two groups enters the second 
group in the middle of its own run, long after its single <a 
href="https://github.com/BeforeClass";><code>@​BeforeClass</code></a>, and 
leaves the first one while its own methods of the second are still to come; and 
a test method belonging to two groups has the setup of both due before it, with 
neither group enclosing the other. An order that holds for the first group a 
class enters and is undefined for every later one is not a contract, and making 
it hold always would mean schedu
 ling every group's methods contiguously -- a different feature from a 
lifecycle reordering, and one that would collide with preserve-order, priority, 
dependsOnMethods and dependsOnGroups. Nothing changes in what TestNG does: the 
ordering described is the one it has produced all along, it is now written down 
(Julien Herr)
   Fixed: GITHUB-1263: An IMethodInterceptor can now tell what each test method 
it is handed declares -- a dependsOnMethods or a dependsOnGroups -- and so what 
it is free to reorder and what it is free to drop. 
ITestNGMethod.upstreamDependencies() and downstreamDependencies() were 
published from the graph the run is scheduled on, and that graph is built from 
what the interceptors return, so every method an interceptor was handed 
answered two empty sets. The declared relation is now resolved over the whole 
method set and published before the chain runs, and only when a user 
interceptor is registered. It is deliberately not the scheduling graph, which 
over methods about to be dropped would validate their dependsOnGroups, reject a 
cycle they resolve and materialise the lazy <a 
href="https://github.com/Factory";><code>@​Factory</code></a> instances they 
carry. A dependency that cannot be resolved is therefore absent from what the 
interceptor is told rather than fatal; the scheduling gra
 ph remains the one that validates what actually runs. What an interceptor is 
handed is unchanged: still every test method of the <!-- raw HTML omitted -->, 
the ones taking part in a dependency included. Restoring the javadoc's promise 
that only free methods are passed would have taken from every filtering 
interceptor the ability to exclude a dependency-constrained test, so the 
wording is corrected instead, on IMethodInterceptor and on both accessors: the 
order preserve-order or group-by-instances imposes is TestNG's own and is not 
reported to an interceptor, the returned order cannot move a method ahead of 
what it has to follow, dropping a method another retained method depends upon 
ends the run with a TestNGException, and the answer is a view of a set TestNG 
rewrites rather than a value to hold. org.testng.internal.WrappedTestNGMethod 
now delegates the two accessors instead of inheriting an interface default that 
throws, and org.testng.internal.LiteWeightTestNGMethod answers the em
 pty set a snapshot holding no reference to the run can give (Julien Herr)
   Fixed: GITHUB-1333: A suite-level time-out no longer costs 
parallel=&quot;tests&quot; its thread affinity. Under 
parallel=&quot;tests&quot; a time-out declared on <!-- raw HTML omitted --> is 
no longer inherited as a time-out on each method of a <!-- raw HTML omitted 
-->; it bounds the <!-- raw HTML omitted -->, which is what SuiteRunner already 
did with it. The DTD has always given the attribute one meaning per mode -- it 
aborts &quot;the method (if parallel=methods) or the test (if 
parallel=tests)&quot; -- but BaseTestMethod.getTimeOut fell back to the XmlTest 
value in every mode, so under parallel=&quot;tests&quot; the suite value was 
applied twice: once to the <!-- raw HTML omitted --> worker, by SuiteRunner, 
and again to every method. That second application is what caused the reported 
symptom: a method carrying a time-out is handed to a single-use executor of its 
own, so a <!-- raw HTML omitted --> put the <a 
href="https://github.com/BeforeClass";><code>@​BeforeClass</code>
 </a> and each <a href="https://github.com/Test";><code>@​Test</code></a> of a 
<!-- raw HTML omitted --> on three different threads, and removing the time-out 
was the only way to get the documented behaviour back. The inheritance is 
skipped exactly when the suite-level bound applies and carries the same value: 
the suite runs parallel=&quot;tests&quot;, and the <!-- raw HTML omitted --> 
declares no time-out of its own, or the same one. Anything else still reaches 
the method as before, because nothing else enforces it: a time-out declared on 
the <!-- raw HTML omitted --> alone, since SuiteRunner bounds its workers with 
the suite value only and TestTaskExecutor is not used in a mode that is not 
parallel at test level; and a parallel=&quot;tests&quot; declared on the <!-- 
raw HTML omitted --> alone, since the parallel-tests path is selected from the 
suite's mode. Both keep their per-method time-out, and so keep running a timed 
method on a thread of its own. An explicit <a href="https://
 github.com/Test"><code>@​Test</code></a>(timeOut=...) is untouched and still 
bounds the method in every mode. Every other parallel mode still inherits the 
suite and test time-out per method exactly as before. Two shapes keep a pool of 
their own whatever the time-out says, and are unchanged here: a parallel data 
provider, and <a 
href="https://github.com/Test";><code>@​Test</code></a>(invocationCount=N, 
threadPoolSize=N). They are listed under Possible backward incompatible changes 
below (Julien Herr)
   New: GITHUB-1164: A third-party library can now own a test method parameter, 
through the new org.testng.IParameterResolver. It is an ITestNGListener, so it 
is registered the way every other listener is -- <a 
href="https://github.com/Listeners";><code>@​Listeners</code></a>, the <!-- raw 
HTML omitted --> tag, TestNG.addListener, or the ServiceLoader -- and it 
answers two questions: supportsParameter(Parameter, ITestNGMethod, 
ITestContext), asked while the arguments of an invocation are built, and 
resolveParameter(...), asked once per invocation. A parameter a resolver claims 
is taken out of data provider matching rather than padded: <a 
href="https://github.com/Test";><code>@​Test</code></a>(dataProvider = 
&quot;dp&quot;) void test(String a, <a 
href="https://github.com/Mine";><code>@​Mine</code></a> Custom c, int b) runs 
against a row of {&quot;value&quot;, 42} and is invoked with 
[&quot;value&quot;, resolved, 42]. The same resolution applies to a method with 
no data provider at 
 all, which is the half of <a 
href="https://redirect.github.com/cbeust/testng/issues/1164";>#1164</a> that 
used to fail with &quot;Cannot inject <a 
href="https://github.com/Test";><code>@​Test</code></a> annotated Method&quot;, 
and it composes with the varargs matching and with native injection: the first 
Method parameter, every ITestContext, ITestResult and XmlTest one, and an 
Object[] slot, is never offered to a resolver, so one cannot displace what 
TestNG already owns, while a second Method parameter -- which TestNG has never 
injected -- is offered like any other. A retry is an invocation of its own and 
is resolved afresh, whether or not its data provider row is cached; a data 
provider row that runs in parallel is resolved on the thread that invokes it; 
and a method that is only reported as skipped resolves nothing. A parameter 
carrying <a 
href="https://github.com/NoInjection";><code>@​NoInjection</code></a> is 
offered, since that annotation already means TestNG has stopped ownin
 g it, and falls through to the data provider as before when no resolver wants 
it. Two resolvers claiming the same parameter is an error naming the method, 
the parameter and both resolvers, rather than an undocumented 
first-listener-wins; a resolver that throws, or that answers a value the 
parameter cannot take, fails that method with a diagnostic naming the resolver, 
the method and the parameter, and keeps the original exception as the cause. A 
parameter no resolver claims keeps the matching rules and the diagnostics it 
had. Resolvers are held per suite, beside the data provider listeners, and a 
run that registers none resolves nothing -- the resolution is the empty 
singleton and every filter and injection short circuits on it, so parameter 
matching is bit for bit what it was. This first implementation covers <a 
href="https://github.com/Test";><code>@​Test</code></a> methods; constructors, 
<a href="https://github.com/Factory";><code>@​Factory</code></a> and the 
configuration metho
 ds are not resolved. They are listed under Possible backward incompatible 
changes below (Julien Herr)</p>
   <!-- raw HTML omitted -->
   </blockquote>
   <p>... (truncated)</p>
   </details>
   <details>
   <summary>Commits</summary>
   <ul>
   <li><a 
href="https://github.com/testng-team/testng/commit/7ddeadb8e3efaa91a58a1706938fd41d7fea8e7c";><code>7ddeadb</code></a>
 Attempting Release 7.5.1</li>
   <li><a 
href="https://github.com/testng-team/testng/commit/18810fcb2745fcc9d1f7226e956c2aaabeec7f21";><code>18810fc</code></a>
 Cherrypick - 47afa2c8a29e2cf925238af1ad7c76fba282793f to 7.5 release</li>
   <li><a 
href="https://github.com/testng-team/testng/commit/f26498233fc910a348b06e8e7564544c9a508464";><code>f264982</code></a>
 Enable ParallelSuiteTest (<a 
href="https://redirect.github.com/cbeust/testng/issues/2687";>#2687</a>)</li>
   <li><a 
href="https://github.com/testng-team/testng/commit/290532eb56d2e60e4cd39ecf66a2cd2204acdc85";><code>290532e</code></a>
 Fix: AfterGroups config annotation does not consider retries for tests  (<a 
href="https://redirect.github.com/cbeust/testng/issues/2690";>#2690</a>)</li>
   <li><a 
href="https://github.com/testng-team/testng/commit/2a756e5cedab49c07c65c2142407febbc0f4f8a7";><code>2a756e5</code></a>
 Merge pull request <a 
href="https://redirect.github.com/cbeust/testng/issues/2688";>#2688</a> from 
dsankouski/implement_yaml_load_classes_flag</li>
   <li><a 
href="https://github.com/testng-team/testng/commit/3c964b86619e5aaa9de63cc844d480ec7e477e02";><code>3c964b8</code></a>
 Review fixes</li>
   <li><a 
href="https://github.com/testng-team/testng/commit/a1f2e3fa2cf74f36374f37987bcb23c92b635385";><code>a1f2e3f</code></a>
 Yaml parser: implement loadClasses flag</li>
   <li><a 
href="https://github.com/testng-team/testng/commit/e8f17fe5b3f735ce107133e5860236c372049316";><code>e8f17fe</code></a>
 Allow ITestObjectFactory injection via listeners (<a 
href="https://redirect.github.com/cbeust/testng/issues/2677";>#2677</a>)</li>
   <li><a 
href="https://github.com/testng-team/testng/commit/db17f3ccef21e32bf2609879b0addebf66853402";><code>db17f3c</code></a>
 Include all data driven tests for reporting skips</li>
   <li><a 
href="https://github.com/testng-team/testng/commit/4c28cd600c6ff37a71f78e13805389f0146922e7";><code>4c28cd6</code></a>
 Adding contributing guidelines to templates.</li>
   <li>Additional commits viewable in <a 
href="https://github.com/cbeust/testng/compare/6.14.3...7.5.1";>compare 
view</a></li>
   </ul>
   </details>
   <br />
   
   
   [![Dependabot compatibility 
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.testng:testng&package-manager=maven&previous-version=6.14.3&new-version=7.5.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
   
   Dependabot will resolve any conflicts with this PR as long as you don't 
alter it yourself. You can also trigger a rebase manually by commenting 
`@dependabot rebase`.
   
   [//]: # (dependabot-automerge-start)
   [//]: # (dependabot-automerge-end)
   
   ---
   
   <details>
   <summary>Dependabot commands and options</summary>
   <br />
   
   You can trigger Dependabot actions by commenting on this PR:
   - `@dependabot rebase` will rebase this PR
   - `@dependabot recreate` will recreate this PR, overwriting any edits that 
have been made to it
   - `@dependabot show <dependency name> ignore conditions` will show all of 
the ignore conditions of the specified dependency
   - `@dependabot ignore this major version` will close this PR and stop 
Dependabot creating any more for this major version (unless you reopen the PR 
or upgrade to it yourself)
   - `@dependabot ignore this minor version` will close this PR and stop 
Dependabot creating any more for this minor version (unless you reopen the PR 
or upgrade to it yourself)
   - `@dependabot ignore this dependency` will close this PR and stop 
Dependabot creating any more for this dependency (unless you reopen the PR or 
upgrade to it yourself)
   You can disable automated security fix PRs for this repo from the [Security 
Alerts page](https://github.com/apache/maven-surefire/network/alerts).
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to