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
To run a particular test, simply add the feature file and line number to the test command, e.g. `pnpm test:e2e:cucumber tests/e2e/cucumber/features/smoke/admin-settings/users.feature:84`
89
89
@@ -111,7 +111,7 @@ To then open e.g. the tracing from the `REPORT_DIR`, run
111
111
$ npx playwright show-trace path/to/file.zip
112
112
```
113
113
114
-
####Lint E2E Test Code
114
+
### Lint E2E Test Code
115
115
116
116
Run the following command to find out the lint issues early in the test codes:
117
117
@@ -127,7 +127,7 @@ $ pnpm lint --fix
127
127
128
128
If the lint problems are not fixed by `--fix` option, we have to manually fix the code.
129
129
130
-
###Analyze the Test Report
130
+
## Analyze the Test Report
131
131
132
132
The cucumber library is used as the test runner for e2e tests. The report generator script lives inside the `tests/e2e/cucumber/report` folder. If you want to create a report after the tests are done, run the command:
133
133
@@ -144,15 +144,15 @@ To see all available options run
144
144
node tests/e2e/cucumber/report --help
145
145
```
146
146
147
-
###E2E Tests on oCIS With Keycloak
147
+
## E2E Tests on oCIS With Keycloak
148
148
149
149
We can run some of the e2e tests on oCIS setup with Keycloak as an external idp. To run tests against locally, please follow the steps below:
150
150
151
-
####Run oCIS With Keycloak
151
+
### Run oCIS With Keycloak
152
152
153
153
There's a documentation to serve [oCIS with Keycloak](https://owncloud.dev/ocis/deployment/ocis_keycloak/). Please follow each step to run **oCIS with Keycloak**.
154
154
155
-
####Run E2E Tests
155
+
### Run E2E Tests
156
156
157
157
```bash
158
158
KEYCLOAK=true \
@@ -167,7 +167,7 @@ Following environment variables come in use while running e2e tests on oCIS with
167
167
-`KEYCLOAK=true` runs the tests with Keycloak
168
168
-`KEYCLOAK_REALM` sets oCIS realm name used on Keycloak
169
169
170
-
###E2E Tests With Predefiend Users (`@predefined-users`)
170
+
## E2E Tests With Predefiend Users (`@predefined-users`)
171
171
172
172
It is possible to run e2e tests with predefined users. This is useful for running tests in a production-like environment.
173
173
The following environment variables are used to run the tests with predefined users:
@@ -242,3 +242,25 @@ All tests which are related to:
242
242
- Features enabled/disabled
243
243
- Running latest tests against an older version of oCIS/Web
244
244
- Large file uploads may take longer time
245
+
246
+
## Usage of `web-packages.txt` In the Test Suite
247
+
248
+
Test suites may include the `web-packages.txt` file to denote which web packages changes affect the defined test scenarios. This information is used in CI pipelines to determine which test suites to run based on the changed web packages.
249
+
250
+
The `web-packages.txt` file should be included within the test suite directory as shown below:
251
+
252
+
```
253
+
└── tests/e2e/cucumber/features
254
+
└── admin-settings
255
+
├── users.feature
256
+
└── web-packages.txt
257
+
```
258
+
259
+
And the `web-packages.txt` file should list the dependent web packages, one per line, for example:
260
+
261
+
NOTE: The package name should start with `web-` in order to be recognized correctly, if not, the line will be ignored.
0 commit comments