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
This commit is contained in:
Dmitriy.Panov
2025-01-14 22:48:38 +00:00
committed by intellij-monorepo-bot
parent db22e01a4a
commit 5752b7c7d5
+2 -2
View File
@@ -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%