#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

#46 in Testing

Download history 5261/week @ 2024-12-08 3369/week @ 2024-12-15 2037/week @ 2024-12-22 2848/week @ 2024-12-29 4850/week @ 2025-01-05 4463/week @ 2025-01-12 4818/week @ 2025-01-19 6371/week @ 2025-01-26 7118/week @ 2025-02-02 8328/week @ 2025-02-09 8177/week @ 2025-02-16 7493/week @ 2025-02-23 6989/week @ 2025-03-02 13107/week @ 2025-03-09 16660/week @ 2025-03-16 14600/week @ 2025-03-23

51,819 downloads per month
Used in 17 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.3MB
~49K SLoC