mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
On TC you are only allowed to access certain directories (temp dir, project roots and so on). Some services might also access Python interpreter folders (to index python libs for example), hence we allow this too to prevent exceptions GitOrigin-RevId: 8f8bf13f859e9cf69ab424b8692968a18aa537cc
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