#command-line #snapshot #cmd #trycmd #assert-cmd

dev bin+lib insta-cmd

A command line extension to the insta testing library for Rust

7 releases (breaking)

new 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

#66 in Testing

Download history 1952/week @ 2023-12-23 1547/week @ 2023-12-30 1973/week @ 2024-01-06 3419/week @ 2024-01-13 1578/week @ 2024-01-20 2038/week @ 2024-01-27 2878/week @ 2024-02-03 1911/week @ 2024-02-10 2149/week @ 2024-02-17 2595/week @ 2024-02-24 3441/week @ 2024-03-02 2794/week @ 2024-03-09 3181/week @ 2024-03-16 2944/week @ 2024-03-23 2479/week @ 2024-03-30 1975/week @ 2024-04-06

10,952 downloads per month
Used in 6 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
~48K SLoC