Skip to content

Commit ff8e440

Browse files
committed
chore(gui): rename run gui command
1 parent 09900ba commit ff8e440

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
### Running e2e tests
77

88
End-to-end testing of html-reporter consists of two stages: generating fixture reports using different tools and tests,
9-
then running hermione tests on these reports.
9+
then running testplane tests on these reports.
1010

1111
In order to make e2e/screenshot tests stable and reproducible across different environments,
1212
you need to launch browsers inside a Docker container.
@@ -34,11 +34,11 @@ you need to launch browsers inside a Docker container.
3434
End-to-end tests are divided into multiple workspaces:
3535
- `test/func/packages` — packages needed for generating fixture reports, e.g. test html-reporter plugins
3636
- `test/func/fixtures` — packages to generate fixture reports
37-
- `test/func/tests` — hermione tests that run on fixture reports
37+
- `test/func/tests` — testplane tests that run on fixture reports
3838
3939
If you want a finer-grained control over the process, the following commands may be useful:
4040
- `npm run e2e:generate-fixtures` — generate fixture reports to run tests on
41-
- `npm run --workspace=test/func/tests gui:plugins` — launch hermione GUI for the `plugins` tests set
41+
- `npm run --workspace=test/func/tests gui:plugins` — launch testplane GUI for the `plugins` tests set
4242
- `npm run e2e:test` — run e2e tests only, without building packages or generating fixtures
4343
4444
### Working with browser docker images

docs/ru/html-reporter-commands.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ GUI-режим позволяет:
2020
### Использование
2121

2222
```bash
23-
npx hermione gui
23+
npx testplane gui
2424
```
2525

2626
## remove-unused-screens
@@ -48,31 +48,31 @@ npx hermione gui
4848
Указываем папку, в которой надо искать неиспользуемые скриншоты:
4949

5050
```bash
51-
npx hermione remove-unused-screens -p 'hermione-screens-folder'
51+
npx testplane remove-unused-screens -p 'testplane-screens-folder'
5252
```
5353

5454
Задаем маску, по которой будем искать скриншоты:
5555

5656
```bash
57-
npx hermione remove-unused-screens -p 'screens/**/*.png'
57+
npx testplane remove-unused-screens -p 'screens/**/*.png'
5858
```
5959

6060
Задаем несколько масок для поиска скриншотов:
6161

6262
```bash
63-
npx hermione remove-unused-screens -p 'screens/**/chrome/*.png' -p 'screens/**/firefox/*.png'
63+
npx testplane remove-unused-screens -p 'screens/**/chrome/*.png' -p 'screens/**/firefox/*.png'
6464
```
6565

6666
Задаем папку для поиска скриншотов и просим не задавать вопросов:
6767

6868
```bash
69-
npx hermione remove-unused-screens -p 'hermione-screens-folder' --skip-questions
69+
npx testplane remove-unused-screens -p 'testplane-screens-folder' --skip-questions
7070
```
7171

7272
Выводим справочную информацию о команде:
7373

7474
```bash
75-
npx hermione remove-unused-screens --help
75+
npx testplane remove-unused-screens --help
7676
```
7777

7878
## merge-reports
@@ -93,13 +93,13 @@ npx hermione remove-unused-screens --help
9393
Пример использования:
9494

9595
```bash
96-
npx hermione merge-reports path-to-database.db path-to-databaseUrls.json -d dest-report -h foo=bar
96+
npx testplane merge-reports path-to-database.db path-to-databaseUrls.json -d dest-report -h foo=bar
9797
```
9898

9999
Http-хедеры можно так же передавать с помощью переменной окружения - `html_reporter_headers` (имеет приоритет выше, чем cli-опция `--header`). Пример:
100100

101101
```bash
102-
html_reporter_headers='{"foo":"bar"}' npx hermione merge-reports path-to-database.db path-to-databaseUrls.json -d dest-report -h baz=qux
102+
html_reporter_headers='{"foo":"bar"}' npx testplane merge-reports path-to-database.db path-to-databaseUrls.json -d dest-report -h baz=qux
103103
```
104104

105105
В итоге `path-to-databaseUrls.json` будет запрошен с хедерами: `{foo: 'bar', baz: 'qux'}`.

lib/server-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function logPathToHtmlReport(pluginConfig: ReporterConfig): void {
102102
const reportPath = `file://${path.resolve(pluginConfig.path, 'index.html')}`;
103103

104104
logger.log(`Your HTML report is here: ${chalk.yellow(reportPath)}`);
105-
logger.log(`To open it use: ${chalk.yellow('npx hermione gui')} or ${chalk.yellow(`npx http-server ${pluginConfig.path}`)}`);
105+
logger.log(`To open it use: ${chalk.yellow('npx testplane gui')} or ${chalk.yellow(`npx http-server ${pluginConfig.path}`)}`);
106106
}
107107

108108
export function logError(e: Error): void {

0 commit comments

Comments
 (0)