Skip to content

Commit d6874e6

Browse files
docs(tests): describe how to write and run testkit tests
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
1 parent f22a2ce commit d6874e6

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎TESTING.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ crates/*/tests/ # Rust integration tests
1616
python/openshell/ # Python unit tests (*_test.py suffix)
1717
e2e/python/ # Python E2E tests (test_*.py prefix)
1818
e2e/rust/ # Rust CLI E2E tests
19+
tests/testkit/ # Support library for SDK-driven E2E suites
1920
```
2021

2122
## Rust Tests
@@ -129,6 +130,17 @@ requires mTLS.
129130
runtime. It covers the current schema and the Podman in-tree versus external
130131
driver configuration boundary.
131132

133+
### testkit (`tests/testkit/`)
134+
135+
`testkit` is the support library for SDK-driven end-to-end suites under
136+
`tests/suites/`. Tests are `#[testkit::test]` functions with a required stable
137+
`id`, a required doc comment, and optional `requires = [...]` capabilities.
138+
They run against the gateway described by the target file named in
139+
`OPENSHELL_TEST_TARGET`. No suite uses it yet. See
140+
[tests/testkit/README.md](tests/testkit/README.md) for how to write tests, what
141+
a conformance test may assert, and how to run against a hand-written target
142+
file.
143+
132144
### Python E2E (`e2e/python/`)
133145

134146
`mise run e2e:python` builds `openshell/e2e-python:dev` from

0 commit comments

Comments
 (0)