mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[evaluation-plugin] Pass the test command with the dataset item
GitOrigin-RevId: 1ab92171b0c2ac4ba1c14314d0d8036eb2fb31a8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3166bc2b01
commit
5564fe0c23
@@ -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>,
|
||||
|
||||
+1
-1
@@ -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(" ")
|
||||
|
||||
Reference in New Issue
Block a user