diff --git a/docs/config/browsers.mdx b/docs/config/browsers.mdx index 0d4115b..078acf0 100644 --- a/docs/config/browsers.mdx +++ b/docs/config/browsers.mdx @@ -1017,6 +1017,64 @@ export = { }; ``` +## Selectivity {#selectivity} + +This section allows you to configure Testplane's selective test execution, avoiding the launch of tests for which nothing has changed. + +The section has the following parameters: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
**Parameter****Type****Default****Description**
`enabled``boolean``false`Enables selective test execution.
`sourceRoot``string``""`Configures the path to the root of the source code files.
`testDependenciesPath``string``".testplane/selectivity"`The path to the directory where test dependency data will be saved.
`compression``"none" | "gz" | "br" | "zstd"``"gz"`The compression type applied to the test dependency data.
`disableSelectivityPatterns``string[]``[]` + A list of patterns. If a file matching one of these patterns is changed, selectivity + will be disabled. +
+ + + You should not specify `node_modules` in `disableSelectivityPatterns`, as this will cause a + significant slowdown. Instead, it is recommended to specify Testplane configuration files and + the application's backend source code. + + [desired-caps]: https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities [html-reporter]: ../../html-reporter/html-reporter-setup [got]: https://github.com/sindresorhus/got/ diff --git a/i18n/ru/docusaurus-plugin-content-docs/current/config/browsers.mdx b/i18n/ru/docusaurus-plugin-content-docs/current/config/browsers.mdx index 3525102..bcfacee 100644 --- a/i18n/ru/docusaurus-plugin-content-docs/current/config/browsers.mdx +++ b/i18n/ru/docusaurus-plugin-content-docs/current/config/browsers.mdx @@ -1025,6 +1025,63 @@ export = { }; ``` +## Selectivity {#selectivity} + +Эта секция позволяет конфигурировать селективность запуска Testplane, избегая запуска тех тестов, для которых ничего не поменялось. + +Секция имеет следующие параметры: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
**Параметр****Тип****По умолчанию****Описание**
`enabled``boolean``false`Включает селективность запуска тестов.
`sourceRoot``string``""`Конфигурирует путь к корню файлов исходного кода.
`testDependenciesPath``string``".testplane/selectivity"`Путь к директории, куда будут сохраняться данные о зависимостях тестов.
`compression``"none" | "gz" | "br" | "zstd"``"gz"`Тип сжатия, применяемый к данным о зависимостях тестов.
`disableSelectivityPatterns``string[]``[]` + Список паттернов, при изменении файлов по которым селективность должна отключаться. +
+ + + В `disableSelectivityPatterns` не стоит указывать `node_modules` - это приведет к ощутимому + замедлению. Вместо этого, рекомендуется указать конфигурационные файлы Testplane и исходный код + серверной части приложения. + + [desired-caps]: https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities [html-reporter]: ../../html-reporter/html-reporter-setup [got]: https://github.com/sindresorhus/got/