mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 06:39:38 +07:00
(cherry picked from commit 3714877098305edcc4eae4f9761ab176c0112355) IJ-MR-151881 GitOrigin-RevId: e6c06cfd22fa03964b8373ecd738fec26c7d785f
Python environment tests (they are using real interpreters)
See https://confluence.jetbrains.com/display/PYINT/PyCharm+tests+on+TeamCity
Layout
debugtests for debuggerpythonall other tests
How to run Python Env Tests:
-
Setup environments:
On
Unix-like operating systems:- Go to Gradle script folder:
cd intellij/community/python/setup-test-environment/ - Specify directory for building environments:
export ORG_GRADLE_PROJECT_buildDir=<path to build dir> - Check value:
echo $ORG_GRADLE_PROJECT_buildDir - Build python environments:
./gradlew -b build.gradle build
On
Windows:- Go to Gradle script folder:
cd intellij/community/python/setup-test-environment/ - Specify directory for building environments:
set ORG_GRADLE_PROJECT_buildDir <path to build dir> - Check value:
echo %ORG_GRADLE_PROJECT_buildDir% - Build python environments:
gradlew.bat -b build.gradle build
- Go to Gradle script folder:
-
Setup run configuration:
- Find saved run configuration Python Tests -> PyEnvTests
- Define env variable
PYCHARM_PYTHONS=<path to build dir>/pythons(defined inORG_GRADLE_PROJECT_buildDir) (for example,PYCHARM_PYTHONS=/home/user/work/testenvs/pythons)
or:
- Define env variable
PYCHARM_PYTHON_ENVSand provide absolute paths to python executables with your os path separator (for example,PYCHARM_PYTHON_ENVS=/home/user/.virtualenvs/py27/bin/python:/home/user/.virtualenvs/py36/bin/python)
-
Run
PyEnvTestsrun configuration