You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/html-reporter/html-reporter-setup.mdx
+4-13Lines changed: 4 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ import ConfigExamples from "/docs/_partials/html-reporter-config-examples.mdx";
37
37
<tr><td>[plugins](#plugins)</td><td>`Plugin[]`</td><td>`[]`</td><td>A list of plugins with their settings.</td></tr>
38
38
<tr><td>[customScripts](#customscripts)</td><td>`AnyFunction[]`</td><td>`[]`</td><td>A list of functions that implement custom scripts. For example, Yandex.Metrika scripts or a Bug.</td></tr>
<tr><td>[badgeFormatter](#badgeformatter)</td><td>`BadgeFormatter`</td><td>`null`</td><td>A callback that is called after every test run. It receives the test result and returns a list of badges.</td></tr>
40
+
<tr><td>[generateBadge](#badgeformatter)</td><td>`BadgeFormatter`</td><td>`null`</td><td>A callback that is called after every test run. It receives the test result and returns a list of badges.</td></tr>
41
41
42
42
</tbody>
43
43
</table>
@@ -291,21 +291,21 @@ If you don't want to share analytics with us, you can disable it in any of the f
291
291
- Using environment variables: `html_reporter_yandex_metrika_enabled=false` or simply `NO_ANALYTICS=true`
292
292
- Using CLI arguments: `--html-reporter-yandex_metrika_enabled=false`
293
293
294
-
### badgeFormatter
294
+
### generateBadge
295
295
296
296
<Versionversion="11.4.0" />
297
297
298
298
A callback that is called after every test run. It receives the test result and returns a list of badges.
299
299
300
-
Usage example: here we set the ticket name and URL, the branch name, and the speed test indicator.
300
+
Usage example: here we set the ticket name and URL, the branch name.
301
301
302
302
```typescript title="testplane.config.ts"
303
303
{
304
304
// other Testplane config...
305
305
plugins: {
306
306
"html-reporter/testplane": {
307
307
//...
308
-
badgeFormatter: (test) => [
308
+
generateBadge: (test) => [
309
309
{
310
310
title: test.meta.issueTitle,
311
311
icon: 'LogoYandexTracker',
@@ -315,15 +315,6 @@ Usage example: here we set the ticket name and URL, the branch name, and the spe
Copy file name to clipboardExpand all lines: i18n/ru/docusaurus-plugin-content-docs/current/html-reporter/html-reporter-setup.mdx
+4-13Lines changed: 4 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ import ConfigExamples from "../_partials/html-reporter-config-examples.mdx";
35
35
<tr><td>[plugins](#plugins)</td><td>`Plugin[]`</td><td>`[]`</td><td>Список плагинов с их настройками.</td></tr>
36
36
<tr><td>[customScripts](#customscripts)</td><td>`AnyFunction[]`</td><td>`[]`</td><td>Список функций, реализующих кастомные скрипты. Например, скрипты Яндекс.Метрики или Жучка.</td></tr>
<tr><td>[badgeFormatter](#badgeformatter)</td><td>`BadgeFormatter`</td><td>`null`</td><td>Колбэк, который вызывается после каждого запуска теста. Он получает результат теста и возвращает список бейджей.</td></tr>
38
+
<tr><td>[generateBadge](#badgeformatter)</td><td>`BadgeFormatter`</td><td>`null`</td><td>Колбэк, который вызывается после каждого запуска теста. Он получает результат теста и возвращает список бейджей.</td></tr>
39
39
40
40
</tbody>
41
41
</table>
@@ -289,21 +289,21 @@ customScripts: [
289
289
- С помощью переменных окружения: `html_reporter_yandex_metrika_enabled=false` или просто `NO_ANALYTICS=true`
290
290
- С помощью аргументов CLI: `--html-reporter-yandex_metrika_enabled=false`
291
291
292
-
### badgeFormatter
292
+
### generateBadge
293
293
294
294
<Versionversion="11.4.0" />
295
295
296
296
Колбэк, который вызывается после каждого запуска теста. Он получает результат теста и возвращает список бейджей.
297
297
298
-
Пример использования: здесь мы задаём название тикета и URL, название ветки и индикатор скорости теста.
298
+
Пример использования: здесь мы задаём название тикета и URL, название ветки.
0 commit comments