You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "peter greaves (Jira)" <ji...@apache.org> on 2021/08/02 20:13:00 UTC
[jira] [Created] (SUREFIRE-1933) tests not included with
Tests.java, ok with Test.java
peter greaves created SUREFIRE-1933:
---------------------------------------
Summary: tests not included with Tests.java, ok with Test.java
Key: SUREFIRE-1933
URL: https://issues.apache.org/jira/browse/SUREFIRE-1933
Project: Maven Surefire
Issue Type: Bug
Components: Maven Surefire Plugin
Affects Versions: 2.12.4
Environment: MacOS, executing test inside IntelliJ, surefire 2.12.4. but also as separately installed mvn, using mvn 3.8.1.
Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Maven home: /opt/apache-maven/apache-maven-3.8.1
Java version: 11.0.10, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/Contents/Home
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"
Reporter: peter greaves
See my github.
if I rename my test class com.springfirst.solvers.FindIndicesSolverTest.java to com.springfirst.solvers.FindIndicesSolverTests.java, no test class is run by the test goal. if I rename the file back to FindIndicesSolverTest.java, both test classes are run. This seems to go against inclusion statements in [http://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html]
you can clone my repo and repro it.
[https://github.com/petergreaves/helloworld]
Might be my error - just started working with Maven, and if this didn't work am sure you'd maybe know about before this. But I thought that a class ending Tests.java would be included.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)