Files
openide/tests.cmd
Dmitriy.Panov 5752b7c7d5 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
2025-01-14 22:48:38 +00:00

17 lines
762 B
Batchfile
Executable File

:<<"::CMDLITERAL"
@ECHO OFF
GOTO :CMDSCRIPT
::CMDLITERAL
# tests.cmd builds and runs IDEA Community tests in way suitable for calling from CI/CD like TeamCity
# THIS SCRIPTS WORKS FOR ALL SYSTEMS Linux/Windows/macOS
# See README.md for usage scenarios
set -eux
root="$(cd "$(dirname "$0")"; pwd)"
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" %* -Dintellij.build.incremental.compilation=true -Dintellij.build.use.compiled.classes=false "%~dp0." intellij.idea.community.build CommunityRunTestsBuildTarget
EXIT /B %ERRORLEVEL%