title: No tests found for given includes
body: <p>build.gradle:</p>
  <pre><code>test {
      useJUnitPlatform()
      testLogging {
          events &quot;passed&quot;, &quot;skipped&quot;, &quot;failed&quot;, &quot;standardOut&quot;, &quot;standardError&quot;
          showStandardStreams = true // to show System.out.println in tests
      }
  }
  </code></pre>
  <p>Unit test</p>
  <pre><code>package com.myproject.m2document
      @TestInstance(TestInstance.Lifecycle.PER_CLASS) // as result remove static for method &quot;BeforeAll/AfterAll&quot;
      internal class M2DocumentManagerTest {
          private val INCORRECT_LENGTH = 800
          private val FILE_INCORRECT_LENGTH_800 = &quot;ABS_to_M2CM_incorrect_length_$INCORRECT_LENGTH.txt&quot;
          private lateinit var m2DocumentManager: M2DocumentManager
          private lateinit var m2Parser: M2Parser
      
          @Test
          fun `Success read text file from test resources folder`() {
              javaClass.classLoader.getResource(FILE_INCORRECT_LENGTH_800)?.let {
                  val file = File(it.file)
      
                  val absolutePath = file.absolutePath
                  assertThat(absolutePath.endsWith(&quot;/$FILE_INCORRECT_LENGTH_800&quot;))
              }
          }
      
      }
  </code></pre>
  <p>I success run unit test by IntellIJ IDEA.</p>
  <p>Nice. But when I try to run it in terminal like this:</p>
  <pre><code> ./gradlew test --tests com.myproject.m2document.M2DocumentManagerTest
  </code></pre>
  <p>I get error:</p>
  <pre><code>&gt; Task :app:compileKotlin NO-SOURCE
  &gt; Task :app:compileJava UP-TO-DATE
  &gt; Task :app:processResources UP-TO-DATE
  &gt; Task :app:classes UP-TO-DATE
  &gt; Task :app:compileTestKotlin UP-TO-DATE
  &gt; Task :app:compileTestJava NO-SOURCE
  &gt; Task :app:processTestResources NO-SOURCE
  &gt; Task :app:testClasses UP-TO-DATE
  &gt; Task :app:test FAILED
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':app:test'.
  &gt;No tests found for given includes: [com.myproject.m2document.M2DocumentManagerTest](--tests filter
  
  * Try:
  &gt; Run with --stacktrace option to get the stack trace.
  &gt; Run with --info or --debug option to get more log output.
  &gt; Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 601ms
  4 actionable tasks: 1 executed, 3 up-to-date
  </code></pre>