#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

#77 in Testing

Download history 3063/week @ 2024-07-18 3327/week @ 2024-07-25 3136/week @ 2024-08-01 2668/week @ 2024-08-08 2531/week @ 2024-08-15 2529/week @ 2024-08-22 3395/week @ 2024-08-29 3401/week @ 2024-09-05 2311/week @ 2024-09-12 2705/week @ 2024-09-19 2325/week @ 2024-09-26 2887/week @ 2024-10-03 2850/week @ 2024-10-10 3289/week @ 2024-10-17 3379/week @ 2024-10-24 3018/week @ 2024-10-31

13,128 downloads per month
Used in 10 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
~50K SLoC