From 5752b7c7d58671a842252eedda8b0eb7319fd5dc Mon Sep 17 00:00:00 2001 From: "Dmitriy.Panov" Date: Tue, 14 Jan 2025 17:49:23 +0100 Subject: [PATCH] build scripts: tests.cmd cannot find `JUnit5TeamCityRunnerForTestsOnClasspath` if executed locally For local launch `intellij.build.use.compiled.classes` is always `true` because all classes are expected to be already prebuilt by the IDE `Build project` action, which isn't getting called if the script is launched from the terminal. And we don't want to mess with the classes compiled by the IDE, so we always assume that they are ready to use. The workaround is to explicitly specify `intellij.build.use.compiled.classes` and `intellij.build.incremental.compilation` in the tests.cmd script. IJI-2080 GitOrigin-RevId: cec4e41a607165d5e1d8b44a06ed1fee2fd24702 --- tests.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests.cmd b/tests.cmd index eac59ef02c5c..0f2a0316f71d 100755 --- a/tests.cmd +++ b/tests.cmd @@ -9,8 +9,8 @@ GOTO :CMDSCRIPT set -eux root="$(cd "$(dirname "$0")"; pwd)" -exec "$root/platform/jps-bootstrap/jps-bootstrap.sh" "$@" "$root" intellij.idea.community.build CommunityRunTestsBuildTarget +exec "$root/platform/jps-bootstrap/jps-bootstrap.sh" "$@" -Dintellij.build.incremental.compilation=true -Dintellij.build.use.compiled.classes=false "$root" intellij.idea.community.build CommunityRunTestsBuildTarget :CMDSCRIPT -call "%~dp0\platform\jps-bootstrap\jps-bootstrap.cmd" %* "%~dp0." intellij.idea.community.build CommunityRunTestsBuildTarget +call "%~dp0\platform\jps-bootstrap\jps-bootstrap.cmd" %* -Dintellij.build.incremental.compilation=true -Dintellij.build.use.compiled.classes=false "%~dp0." intellij.idea.community.build CommunityRunTestsBuildTarget EXIT /B %ERRORLEVEL%