docs: add tutorial for testing a k8s charm
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
*Please describe the question or issue you're facing with "test - Charmcraft 4.0.1 documentation".*
For running tests with spread, it seems like we mainly have two options:
- [zinc-k8s example](https://github.com/jnsgruk/zinc-k8s-operator/blob/main/spread.yaml):
- custom ("adhoc") lxd backend with concierge installing k8s, juju + [cloud-config](https://github.com/jnsgruk/zinc-k8s-operator/blob/8569d92152f40e2a79ff88cad30061671a513843/tests/spread/cloud-config.yaml#L7)
- custom ("adhoc") backend that lets spread "ssh into itself" ([mysql example](https://github.com/canonical/mysql-k8s-operator/blob/1c13d0850919d9565281a506afb05839a4ce31d5/spread.yaml#L67)). This approach is actually useful for running itest locally during dev.
Official guidance on how to test (k8s) charm with spread would be extremely valuable.
---
*Reported from: https://documentation.ubuntu.com/charmcraft/stable/reference/commands/test/*
Evaluation history
No evaluation history available.