mirror of
https://github.com/imjasonh/testscript-rs
synced 2026-07-18 22:58:35 +00:00
add GHA workflow (#1)
* add GHA workflow Signed-off-by: Jason Hall <jason@chainguard.dev> * fix CI Signed-off-by: Jason Hall <jason@chainguard.dev> * update readme Signed-off-by: Jason Hall <jason@chainguard.dev> * add badge Signed-off-by: Jason Hall <jason@chainguard.dev> --------- Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
parent
fa546ce09f
commit
448cf615db
16 changed files with 381 additions and 156 deletions
|
|
@ -1,5 +1,7 @@
|
|||
# testscript-rs
|
||||
|
||||
[](https://github.com/imjasonh/testscript-rs/actions)
|
||||
|
||||
A Rust crate for testing command-line tools using filesystem-based script files.
|
||||
|
||||
testscript-rs provides a framework for writing integration tests for CLI applications using the `.txtar` format, where test scripts and file contents are combined in a single file.
|
||||
|
|
@ -137,6 +139,12 @@ Test scripts use the `.txtar` format. For complete format documentation, see the
|
|||
|
||||
Commands can be prefixed with conditions (`[unix]`) or negated (`!`).
|
||||
|
||||
> Note: Some features of `testscript` in Go are not supported in this Rust port:
|
||||
>
|
||||
> - `[gc]` for whether Go was built with gc
|
||||
> - `[gccgo]` for whether Go was built with gccgo
|
||||
> - `[go1.x]` for whether the Go version is 1.x or later
|
||||
|
||||
## Examples
|
||||
|
||||
See [`examples/sample-cli/`](./examples/sample-cli/) and its `testdata` directory for more examples.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue