GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — [core] Fix off-by-one error in AbstractJjtreeNode.fitTokensToChildren() by UncleOwen · Pull Request #7061 · pmd/pmd Conversation
|
|
Compared to main: (comment created at 2026-09-12 16:18:02+00:00 for 64b2255) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
|
||
| @Test | ||
| void testDummy() { | ||
| // Without this, the test will fail?! |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The exception "No Tests have been executed in Test Set" is coming from https://github.com/pmd/build-tools/blob/8e1706f38c8956527396ffb6e57ce836b9bf1281/src/main/java/net/sourceforge/pmd/buildtools/surefire/junit/TestExecutionListener.java#L81
IIRC, I've added this, because we had cases (maybe with kotest, maybe normal JUnit tests), where we had many test methods, but no tests have ever been executed and the build is green, giving a very false sense of safety...
This is activated by the configuration for surefire plugin:
Lines 350 to 371 in 07cf000
| <statelessTestsetInfoReporter implementation="net.sourceforge.pmd.buildtools.surefire.PMDStatelessTestSetInfoConsoleReporter"> | |
| <showFailedTests>true</showFailedTests> | |
| <showSuccessfulTests>false</showSuccessfulTests> | |
| <showSkippedTests>true</showSkippedTests> | |
| <usePhrasedFileName>true</usePhrasedFileName> | |
| <usePhrasedClassNameInRunning>true</usePhrasedClassNameInRunning> | |
| <usePhrasedClassNameInTestCaseSummary>true</usePhrasedClassNameInTestCaseSummary> | |
| </statelessTestsetInfoReporter> | |
| <statelessTestsetReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter"> | |
| <usePhrasedFileName>true</usePhrasedFileName> | |
| <usePhrasedTestSuiteClassName>true</usePhrasedTestSuiteClassName> | |
| <usePhrasedTestCaseClassName>true</usePhrasedTestCaseClassName> | |
| <usePhrasedTestCaseMethodName>true</usePhrasedTestCaseMethodName> | |
| </statelessTestsetReporter> | |
| </configuration> | |
| <dependencies> | |
| <dependency> | |
| <groupId>net.sourceforge.pmd</groupId> | |
| <artifactId>pmd-build-tools-config</artifactId> | |
| <version>${pmd.build-tools.version}</version> | |
| </dependency> |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.