#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

#55 in Testing

Download history 2641/week @ 2024-08-05 2599/week @ 2024-08-12 2493/week @ 2024-08-19 2640/week @ 2024-08-26 3619/week @ 2024-09-02 2882/week @ 2024-09-09 2651/week @ 2024-09-16 2408/week @ 2024-09-23 2259/week @ 2024-09-30 3176/week @ 2024-10-07 3189/week @ 2024-10-14 3261/week @ 2024-10-21 3078/week @ 2024-10-28 3341/week @ 2024-11-04 3661/week @ 2024-11-11 4797/week @ 2024-11-18

15,185 downloads per month
Used in 11 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