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
Then you need to [convert code coverage from Playwright's format into Istanbul format](https://github.com/codeceptjs/CodeceptJS/wiki/Converting-Playwright-to-Istanbul-Coverage).
546
-
547
-
Once the istanbul compatible coverage is generated, use [`nyc`](https://www.npmjs.com/package/nyc) to generate your coverage report in your desired format.
548
-
549
-
```
550
-
npx nyc report --reporter html -t coverage
551
-
```
552
-
553
-
The above command will generate will generate coverage in an interactive html format. It should generate `html` files in the directory where your code coverage is present, something like shown below.
Automatically launches [interactive pause][9] when a test fails.
689
+
Automatically launches [interactive pause][10] when a test fails.
684
690
685
691
Useful for debugging flaky tests on local environment.
686
692
Add this plugin to config file:
@@ -863,14 +869,14 @@ Possible config options:
863
869
864
870
## selenoid
865
871
866
-
[Selenoid][10] plugin automatically starts browsers and video recording.
872
+
[Selenoid][11] plugin automatically starts browsers and video recording.
867
873
Works with WebDriver helper.
868
874
869
875
### Prerequisite
870
876
871
877
This plugin **requires Docker** to be installed.
872
878
873
-
> If you have issues starting Selenoid with this plugin consider using the official [Configuration Manager][11] tool from Selenoid
879
+
> If you have issues starting Selenoid with this plugin consider using the official [Configuration Manager][12] tool from Selenoid
874
880
875
881
### Usage
876
882
@@ -899,7 +905,7 @@ plugins: {
899
905
}
900
906
```
901
907
902
-
When `autoCreate` is enabled it will pull the [latest Selenoid from DockerHub][12] and start Selenoid automatically.
908
+
When `autoCreate` is enabled it will pull the [latest Selenoid from DockerHub][13] and start Selenoid automatically.
903
909
It will also create `browsers.json` file required by Selenoid.
904
910
905
911
In automatic mode the latest version of browser will be used for tests. It is recommended to specify exact version of each browser inside `browsers.json` file.
@@ -911,10 +917,10 @@ In automatic mode the latest version of browser will be used for tests. It is re
911
917
While this plugin can create containers for you for better control it is recommended to create and launch containers manually.
912
918
This is especially useful for Continous Integration server as you can configure scaling for Selenoid containers.
913
919
914
-
> Use [Selenoid Configuration Manager][11] to create and start containers semi-automatically.
920
+
> Use [Selenoid Configuration Manager][12] to create and start containers semi-automatically.
915
921
916
922
1. Create `browsers.json` file in the same directory `codecept.conf.js` is located
917
-
[Refer to Selenoid documentation][13] to know more about browsers.json.
923
+
[Refer to Selenoid documentation][14] to know more about browsers.json.
918
924
919
925
_Sample browsers.json_
920
926
@@ -939,7 +945,7 @@ _Sample browsers.json_
939
945
940
946
2. Create Selenoid container
941
947
942
-
Run the following command to create a container. To know more [refer here][14]
948
+
Run the following command to create a container. To know more [refer here][15]
943
949
944
950
```bash
945
951
docker create \
@@ -972,15 +978,15 @@ When `allure` plugin is enabled a video is attached to report automatically.
972
978
| enableVideo | Enable video recording and use `video` folder of output (default: false) |
973
979
| enableLog | Enable log recording and use `logs` folder of output (default: false) |
974
980
| deletePassed | Delete video and logs of passed tests (default : true) |
975
-
| additionalParams | example: `additionalParams:'--env TEST=test'` [Refer here][15] to know more |
981
+
| additionalParams | example: `additionalParams:'--env TEST=test'` [Refer here][16] to know more |
976
982
977
983
### Parameters
978
984
979
985
- `config`
980
986
981
987
## stepByStepReport
982
988
983
-
![step-by-step-report][16]
989
+
![step-by-step-report][17]
984
990
985
991
Generates step by step report for a test.
986
992
After each step in a test a screenshot is created. After test executed screenshots are combined into slideshow.
@@ -1161,7 +1167,7 @@ This plugin allows to run webdriverio services like:
1161
1167
- browserstack
1162
1168
- appium
1163
1169
1164
-
A complete list of all available services can be found on [webdriverio website][17].
1170
+
A complete list of all available services can be found on [webdriverio website][18].
1165
1171
1166
1172
#### Setup
1167
1173
@@ -1173,7 +1179,7 @@ See examples below:
1173
1179
1174
1180
#### Selenium Standalone Service
1175
1181
1176
-
Install `@wdio/selenium-standalone-service` package, as [described here][18].
1182
+
Install `@wdio/selenium-standalone-service` package, as [described here][19].
1177
1183
It is important to make sure it is compatible with current webdriverio version.
1178
1184
1179
1185
Enable `wdio` plugin in plugins list and add `selenium-standalone` service:
@@ -1190,7 +1196,7 @@ plugins: {
1190
1196
1191
1197
#### Sauce Service
1192
1198
1193
-
Install `@wdio/sauce-service` package, as [described here][19].
1199
+
Install `@wdio/sauce-service` package, as [described here][20].
1194
1200
It is important to make sure it is compatible with current webdriverio version.
1195
1201
1196
1202
Enable `wdio` plugin in plugins list and add `sauce` service:
@@ -1220,40 +1226,42 @@ In the same manner additional services from webdriverio can be installed, enable
0 commit comments