В каталоге `vscode-extension/` есть локальное расширение для запуска тестов кнопками из VS Code.
Быстрый запуск для разработки:
```text
1. Открыть vscode-extension/ в VS Code.
2. Нажать F5.
3. В открывшемся Extension Development Host открыть рабочий каталог с eepm.
4. Использовать панель EPM Test или кнопку EPM Test в статус-баре.
```
Расширение запускает `epm-docker-test.sh` в обычном терминале VS Code. Путь к скрипту, рабочий каталог, режим запуска, `--latest`, `-j`, remote/builder-настройки и избранные команды настраиваются через параметры `epmDockerTest.*`.
Запуск одного приложения сразу на нескольких системах:
Запуск одного приложения сразу на нескольких системах:
VS Code extension with buttons for `epm-docker-test.sh`.
## Use
1. Open this folder in VS Code: `vscode-extension`.
2. Press `F5` to start an Extension Development Host.
3. Open the repository with `epm-docker-test.sh` in that host.
4. Use the `EPM Test` activity bar view or the `$(beaker) EPM Test` status bar button.
The extension runs commands in a normal VS Code terminal, so the same output and prompts remain visible.
## Actions
-`Run app on systems`: asks for an app and target systems.
-`Run app preset`: asks for an app and `main`, `russian`, or `all`.
-`Run exec command`: asks for a shell command and target systems or preset.
-`Rerun last command`: repeats the last generated command.
-`Open log folder`: opens `${XDG_STATE_HOME:-$HOME/.local/state}/epm-docker-test` or the configured log root.
## Favorites
Pinned commands can be added to workspace settings:
```json
{
"epmDockerTest.favorites":[
{
"label":"ayugram main",
"app":"ayugram",
"preset":"main"
},
{
"label":"os-release fedora",
"exec":"cat /etc/os-release | head -3",
"systems":["fedora"]
}
]
}
```
## Settings
Important settings:
-`epmDockerTest.scriptPath`: path to `epm-docker-test.sh`; empty means auto-detect.
-`epmDockerTest.workingDirectory`: command working directory.
-`epmDockerTest.defaultSystems`: default systems for app/exec runs.
-`epmDockerTest.defaultPreset`: default preset for preset runs.
-`epmDockerTest.defaultMode`: `auto`, `local`, or `remote`.
-`epmDockerTest.latest`: pass `--latest`.
-`epmDockerTest.parallelJobs`: pass `-j N` when greater than `1`.
-`epmDockerTest.eepmDir`, `epmDockerTest.eepmSource`, `epmDockerTest.remoteHost`, `epmDockerTest.remoteUser`, `epmDockerTest.builderUser`, `epmDockerTest.builderPath`, `epmDockerTest.logRoot`: map to the same script options.