#snapshot #cmd #trycmd #assert-cmd

bin+lib insta-cmd

A command line extension to the insta testing library for Rust

3 unstable releases

Uses new Rust 2021

0.2.0 Jul 27, 2022
0.1.1 Jul 21, 2022
0.1.0 Jul 21, 2022

#1833 in Command line utilities

27 downloads per month
Used in quickenv

Apache-2.0

13KB
271 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.5–2.2MB
~44K SLoC