Skip to content

Commit 75ae915

Browse files
Update docs/sources/next/results-output/web-dashboard/_index.md
Co-authored-by: Heitor Tashiro Sergent <[email protected]>
1 parent e3fb077 commit 75ae915

File tree

1 file changed

+12
-2
lines changed
  • docs/sources/next/results-output/web-dashboard

1 file changed

+12
-2
lines changed

docs/sources/next/results-output/web-dashboard/_index.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,24 @@ The dashboard provides a real-time overview of the performance observed by k6 wh
1414

1515
## Generate HTML test reports
1616

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.
1818

1919
![HTML test report screenshot](/media/docs/k6-oss/web-dashboard-report.png)
2020

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.
2224

2325
![HTML test report generation button](/media/docs/k6-oss/web-dashboard-report-button.png)
2426

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+
2535
## How to use
2636

2737
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

Comments
 (0)