Snapshot testing for CLI / REPL applications, in a fun way
APACHE-2.0 License
term-transcript
is a Rust library and a CLI app that allow to:
The primary use case is easy to create and maintain end-to-end tests for CLI / REPL apps. Such tests can be embedded into a readme file.
term-transcript
comes in two flavors: a Rust library, and a CLI app.
The CLI app has slightly less functionality, but does not require Rust knowledge.
See their docs and the FAQ for usage guidelines and troubleshooting advice.
An SVG snapshot of the rainbow
example
produced by this crate:
A snapshot of the same example with the scrolling animation and window frame:
A snapshot of a similar example rendered to HTML using a custom template is available as a source file and in the rendered form.
See the examples
directory for more snapshot examples.
All contributions are welcome! See the contributing guide to help you get involved.
All code is licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in term-transcript
by you, as defined in the Apache-2.0 license,
shall be dual licensed as above, without any additional terms or conditions.