#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

#37 in Testing

Download history 26646/week @ 2025-10-09 30316/week @ 2025-10-16 30609/week @ 2025-10-23 31616/week @ 2025-10-30 33267/week @ 2025-11-06 41335/week @ 2025-11-13 49428/week @ 2025-11-20 36048/week @ 2025-11-27 38224/week @ 2025-12-04 34241/week @ 2025-12-11 35126/week @ 2025-12-18 33019/week @ 2025-12-25 39045/week @ 2026-01-01 41263/week @ 2026-01-08 43447/week @ 2026-01-15 47960/week @ 2026-01-22

176,772 downloads per month
Used in 36 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

~2.9–8.5MB
~186K SLoC