#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

#42 in Testing

Download history 3121/week @ 2024-10-26 3253/week @ 2024-11-02 3461/week @ 2024-11-09 5169/week @ 2024-11-16 4127/week @ 2024-11-23 4955/week @ 2024-11-30 5205/week @ 2024-12-07 3420/week @ 2024-12-14 2043/week @ 2024-12-21 2684/week @ 2024-12-28 4833/week @ 2025-01-04 4522/week @ 2025-01-11 4665/week @ 2025-01-18 6541/week @ 2025-01-25 7000/week @ 2025-02-01 8052/week @ 2025-02-08

26,949 downloads per month
Used in 16 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