#snapshot #cmd #trycmd #assert-cmd

build insta-cmd

A command line extension to the insta testing library for Rust

5 releases (3 breaking)

0.4.0 Aug 28, 2023
0.3.0 Jun 26, 2023
0.2.0 Jul 27, 2022
0.1.1 Jul 21, 2022
0.1.0 Jul 21, 2022

#37 in Build Utils

Download history 1125/week @ 2023-08-14 1828/week @ 2023-08-21 1233/week @ 2023-08-28 1498/week @ 2023-09-04 1896/week @ 2023-09-11 1162/week @ 2023-09-18 1042/week @ 2023-09-25 2054/week @ 2023-10-02 2024/week @ 2023-10-09 2681/week @ 2023-10-16 2068/week @ 2023-10-23 1594/week @ 2023-10-30 1476/week @ 2023-11-06 2629/week @ 2023-11-13 1620/week @ 2023-11-20 1668/week @ 2023-11-27

7,536 downloads per month
Used in 4 crates

Apache-2.0

15KB
320 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.6–2.3MB
~47K SLoC