fix: typo in the test exec config

This commit is contained in:
FalsePattern 2024-11-09 11:56:48 +01:00
parent e45872a98b
commit e6be5d7995
Signed by: falsepattern
GPG key ID: E930CDEC50C50E23
2 changed files with 2 additions and 1 deletions

View file

@ -21,6 +21,7 @@ Changelog structure reference:
- Project - Project
- IDE freezes when opening a zig project / doing zig init - IDE freezes when opening a zig project / doing zig init
- Test tasks don't work and try to run the file as an executable
## [20.0.0] ## [20.0.0]

View file

@ -45,7 +45,7 @@ class ZigExecConfigTest(project: Project, factory: ConfigurationFactory): ZigExe
@Throws(ExecutionException::class) @Throws(ExecutionException::class)
override suspend fun buildCommandLineArgs(debug: Boolean): List<String> { override suspend fun buildCommandLineArgs(debug: Boolean): List<String> {
val result = ArrayList<String>() val result = ArrayList<String>()
result.add(if (debug) "build-exe" else "run") result.add("test")
result.addAll(coloredCliFlags(colored.value, debug)) result.addAll(coloredCliFlags(colored.value, debug))
result.add(filePath.path?.pathString ?: throw ExecutionException(ZigBrainsBundle.message("exception.zig.empty-file-path"))) result.add(filePath.path?.pathString ?: throw ExecutionException(ZigBrainsBundle.message("exception.zig.empty-file-path")))
if (!debug || optimization.forced) { if (!debug || optimization.forced) {