> ## Documentation Index
> Fetch the complete documentation index at: https://docs.akua.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# akua pkg test

> Run KCL tests (test_*.k, *_test.k) and, with --golden, snapshot tests

```sh
akua pkg test [flags]
```

| Flag | Type | Description |
| - | - | - |
| `--workspace` | string | Workspace root |
| `--golden` | boolean | Run golden snapshot tests in addition to assertion tests |
| `--update-snapshots` | boolean | Rewrite snapshot files rather than diff. Implies `--golden` |

Every command also accepts the [universal flags](https://docs.akua.dev/akua/cli#universal-flags).

## Related topics

> [card] [akua pkg commands](https://docs.akua.dev/akua/cli.md)
>
> Every command, the universal flags and the exit codes.

> [card] [Error codes](https://docs.akua.dev/akua/errors.md)
>
> What each structured error means and how to resolve it.
