override fun runTestImpl()

in integration-test/common/src/main/AbstractGradleTraceIntegrationTest.kt [17:43]


    override fun runTestImpl(
        testClassName: String,
        testMethodName: String,
        extraJvmArgs: List<String>,
        extraAgentArgs: Map<String, String>,
        commands: List<String>,
        outputFile: File
    ) {
        createGradleConnection().use { connection ->
            connection
                .newBuild()
                .setStandardError(System.err)
                .addArguments(
                    "-Dorg.gradle.daemon=false",
                    "--init-script",
                    createInitScriptAsTempFile(
                        buildGradleInitScriptToDumpTrace(
                            commands, testClassName, testMethodName, outputFile, extraJvmArgs, extraAgentArgs
                        )
                    ).absolutePath,
                ).forTasks(
                    *commands.toTypedArray(),
                    "--tests",
                    "$testClassName.$testMethodName",
                ).run()
        }
    }