Introduce tests runner for run configurations + highlighting + Gradle

This allows us to check two things:
- presence of line markers (haven't been checked by old
  GradleTestRunConfigurationTests, though could've been checked by
  LineMarkerTests)
- some properties of run configurations which will be created from those
  line markers

Old GradleTestRunConfigurationTest have been renamed to
GradleTestRunConfigurationCustomTest and slightly modified to be able
to re-use the same testdata if necessary.
This commit is contained in:
Dmitry Savvinov
2020-01-20 16:47:45 +03:00
parent 4f5c3d1387
commit b34f091fa4
5 changed files with 107 additions and 8 deletions
@@ -1,11 +1,11 @@
import org.junit.Test
class MyKotlinTest {
class <lineMarker descr="Run Test" settings=":cleanTest :test --tests \"MyKotlinTest\"">MyKotlinTest</lineMarker> {
@Test
fun testA() {
fun <lineMarker descr="Run Test" settings=":cleanTest :test --tests \"MyKotlinTest.testA\"">testA</lineMarker>() {
}
@Test
fun testB() {
fun <lineMarker descr="Run Test" settings=":cleanTest :test --tests \"MyKotlinTest.testB\"">testB</lineMarker>() {
}
}