[evaluation-plugin] Pass the test command with the dataset item

GitOrigin-RevId: 1ab92171b0c2ac4ba1c14314d0d8036eb2fb31a8
This commit is contained in:
Roman Vasiliev
2025-09-02 10:24:26 +00:00
committed by intellij-monorepo-bot
parent 3166bc2b01
commit 5564fe0c23
2 changed files with 2 additions and 2 deletions
@@ -6,7 +6,7 @@ import com.intellij.openapi.project.Project
class TestRunnerParams(val language: Language)
class TestRunRequest(val tests: List<String>, val project: Project)
class TestRunRequest(val tests: List<String>, val testCommand: String?, val project: Project)
class TestRunResult(
val exitCode: Int,
val passed: List<String>,
@@ -16,7 +16,7 @@ class PythonTestRunner : TestRunner {
override suspend fun runTests(request: TestRunRequest): TestRunResult {
// TODO unify with JavaTestRunner
val testCommand = System.getenv("EVALUATION_TEST_COMMAND")
val testCommand = request.testCommand
requireNotNull(testCommand) { "Only test running via command is supported" }
val testCommandParts = testCommand.split(" ")