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: README.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -261,13 +261,30 @@ python -Wa manage.py test
261
261
262
262
# configure logging level for cleaner test progress output
263
263
OPTIMAP_LOGGING_LEVEL=WARNING python manage.py test tests
264
+
```
265
+
266
+
### Run UI tests
267
+
268
+
Running UI tests needs either compose configuration or a manage.py runserver in a seperate shell.
264
269
265
-
# running UI tests needs either compose configuration or a manage.py runserver in a seperate shell
270
+
```bash
266
271
docker-compose up --build
267
272
268
273
python -Wa manage.py test tests-ui
269
274
```
270
275
276
+
### Check test coverage
277
+
278
+
```bash
279
+
coverage run --source='publications' --omit='*/migrations/**' manage.py test tests
280
+
281
+
coverage report
282
+
283
+
# save the reports
284
+
coverage html
285
+
coverage xml
286
+
```
287
+
271
288
### Develop tests
272
289
273
290
For developing the UI tests, you can remove the `headless=True` in the statements for starting the browsers so you can "watch along" and inspect the HTML when a breakpoint is hit as the tests are executed.
0 commit comments