#command-line #snapshot #cmd #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

#60 in Testing

Download history 1650/week @ 2024-01-22 2262/week @ 2024-01-29 2790/week @ 2024-02-05 2021/week @ 2024-02-12 1842/week @ 2024-02-19 2758/week @ 2024-02-26 3694/week @ 2024-03-04 2892/week @ 2024-03-11 3284/week @ 2024-03-18 2477/week @ 2024-03-25 2565/week @ 2024-04-01 2729/week @ 2024-04-08 2207/week @ 2024-04-15 2426/week @ 2024-04-22 3513/week @ 2024-04-29 1822/week @ 2024-05-06

10,352 downloads per month
Used in 7 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–2MB
~47K SLoC