From 71aa2a0808109b411f70a2ab900bd57d455e7204 Mon Sep 17 00:00:00 2001 From: Elizaveta Shashkova Date: Mon, 28 Oct 2019 19:43:39 +0300 Subject: [PATCH] PY-38763 Add env tests instructions GitOrigin-RevId: e903b1dad81e9d5eb6386f3ddac190e16783ef69 --- .../testSrc/com/jetbrains/env/python/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 python/testSrc/com/jetbrains/env/python/README.md diff --git a/python/testSrc/com/jetbrains/env/python/README.md b/python/testSrc/com/jetbrains/env/python/README.md new file mode 100644 index 000000000000..cc55185a8647 --- /dev/null +++ b/python/testSrc/com/jetbrains/env/python/README.md @@ -0,0 +1,17 @@ +How to run Python Env Tests: + +1. Setup environments (in Unix-like OS): + 1. Go to Gradle script folder: `cd intellij/community/python/setup-test-environment/` + 2. Specify directory for building environments: `export ORG_GRADLE_PROJECT_buildDir=` + 3. Build python environments: `./gradlew -b build.gradle build` + +2. Setup run configuration: + 1. Find saved run configuration Python Tests -> PyEnvTests + 2. Define env variable `PYCHARM_PYTHONS=/pythons` (dir was specified in 1.2) + (for example, `PYCHARM_PYTHONS=/home/user/work/testenvs/pythons`) + + or: + 3. Define env variable `PYCHARM_PYTHON_ENVS` and 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`) + +3. Run `PyEnvTests` run configuration