---
title: "Run your k6 test locally | Grafana Labs"
description: "Execute your k6 test script locally and view the results in your terminal."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Run your k6 test locally

In this milestone, you run your k6 test script locally and review the results in your terminal.

1. **In your terminal**, navigate to the directory containing your `script.js` file and run the test:
   
   Bash ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   k6 run script.js
   ```
   
   If you’re using Docker:
   
   Bash ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   docker run --rm -i grafana/k6 run - < script.js
   ```
2. Observe the test execution in your terminal. k6 displays real-time progress including iteration count, HTTP request statistics, and response time metrics.
3. When the test completes, review the summary. Look for:
   
   - **checks\_succeeded**: Should be 100% if all requests returned status 200
   - **http\_req\_duration**: Average, median, and p95 response times
   - **http\_req\_failed**: Should be 0% for a healthy endpoint
   - **iterations**: Should show 10 completed iterations

**Troubleshooting**

If the test fails to run, check that your script syntax is correct and that you have network connectivity to `https://quickpizza.grafana.com`.

- [Running k6 tests](/docs/k6/latest/get-started/running-k6/)

In the next milestone, you send your test results to Grafana Cloud for visualization and analysis.
