#command-line #cmd #snapshot #assert-cmd #trycmd

dev bin+lib insta-cmd

A command line extension to the insta testing library for Rust

7 releases (breaking)

0.6.0 Apr 11, 2024
0.5.0 Feb 19, 2024
0.4.0 Aug 28, 2023
0.3.0 Jun 26, 2023
0.1.1 Jul 21, 2022

#43 in Testing

Download history 2247/week @ 2024-09-24 2657/week @ 2024-10-01 2949/week @ 2024-10-08 3452/week @ 2024-10-15 3269/week @ 2024-10-22 2919/week @ 2024-10-29 3377/week @ 2024-11-05 3827/week @ 2024-11-12 4638/week @ 2024-11-19 4657/week @ 2024-11-26 5143/week @ 2024-12-03 4489/week @ 2024-12-10 3068/week @ 2024-12-17 2221/week @ 2024-12-24 3257/week @ 2024-12-31 3999/week @ 2025-01-07

13,231 downloads per month
Used in 14 crates

Apache-2.0

17KB
385 lines

insta-cmd: command line testing extension for insta

Build Status Crates.io License rustc 1.56.1 Documentation

Introduction

This is an experimental extension to insta for command line app testing.

use std::process::Command;
use insta_cmd::assert_cmd_snapshot;

assert_cmd_snapshot!(Command::new("echo").arg("Hello World!"));

Dependencies

~1.3–2.2MB
~49K SLoC