Crates.io | runt |
lib.rs | runt |
version | 0.4.1 |
source | src |
created_at | 2020-03-29 16:27:13.137595 |
updated_at | 2023-06-13 19:05:08.75777 |
description | A lightweight and parallel snapshot testing framework. |
homepage | |
repository | https://github.com/rachitnigam/runt |
max_upload_size | |
id | 224117 |
size | 1,579,035 |
Runt is a lightweight, concurrent, and parallel snapshot testing framework that requires minimal configuration. Checkout the documentation for explanation of various features.
Here is an example of runt
in action:
Install the latest version of runt
using:
cargo install runt
Runt is most useful when you have the following test setup:
Runt is not useful when you want to do:
Snapshot testing with runt is extremely flexible. For example, the tests
under runt-cli-test
test the outputs of the runt CLI.
cargo build --release
. The runt
executable is generated
under target/release/runt
.runt
. Run runt cli-test
to test runt.View the example configuration for the tests in cli-test
.
To run the tests, run runt cli-test
runt
forgoes the
flexibility of turnt for faster execution and built-in output diffing.runt
operators on
arbitrary shell commands which enables testing CLI programs.Runt is used to test several reserach compilers built by the Capra lab: Calyx, Dahlia, and Filament.