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/sources/next/results-output/web-dashboard/_index.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,14 +14,24 @@ The dashboard provides a real-time overview of the performance observed by k6 wh
14
14
15
15
## Generate HTML test reports
16
16
17
-
You can generate detailed, downloadable HTML reports directly from the dashboard. These reports are self-contained, making them ideal for sharing with your team.
17
+
You can generate detailed, downloadable HTML reports directly from the web dashboard or the command line. These reports are self-contained, making them ideal for sharing with your team.
18
18
19
19

20
20
21
-
You can access the HTML test report by clicking the "Report" button on the dashboard's menu.
21
+
### Generate report from web dashboard
22
+
23
+
To generate a report from the web dashboard, click **Report** on the dashboard's menu.
22
24
23
25

24
26
27
+
### Generate report from the command line
28
+
29
+
To automatically generate a report from the command line once the test finishes running, use the `K6_WEB_DASHBOARD_EXPORT` option. For example:
30
+
31
+
```shell
32
+
K6_WEB_DASHBOARD=true K6_WEB_DASHBOARD_EXPORT=html-report.html k6 run script.js
33
+
```
34
+
25
35
## How to use
26
36
27
37
The web dashboard is a built-in feature of k6. You can enable it by setting the `K6_WEB_DASHBOARD` environment variable to `true` when running your test script, for example:
0 commit comments