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

dev bin+lib insta-cmd

A command line extension to the insta testing library for Rust

7个版本 (breaking)

0.6.0 2024年4月11日
0.5.0 2024年2月19日
0.4.0 2023年8月28日
0.3.0 2023年6月26日
0.1.1 2022年7月21日

#55 in Testing

Download history · Rust 包仓库 2056/week @ 2024-04-20 · Rust 包仓库 3226/week @ 2024-04-27 · Rust 包仓库 2429/week @ 2024-05-04 · Rust 包仓库 1777/week @ 2024-05-11 · Rust 包仓库 2363/week @ 2024-05-18 · Rust 包仓库 2608/week @ 2024-05-25 · Rust 包仓库 2909/week @ 2024-06-01 · Rust 包仓库 4712/week @ 2024-06-08 · Rust 包仓库 3755/week @ 2024-06-15 · Rust 包仓库 3622/week @ 2024-06-22 · Rust 包仓库 2612/week @ 2024-06-29 · Rust 包仓库 2302/week @ 2024-07-06 · Rust 包仓库 3039/week @ 2024-07-13 · Rust 包仓库 3449/week @ 2024-07-20 · Rust 包仓库 3240/week @ 2024-07-27 · Rust 包仓库 2589/week @ 2024-08-03 · Rust 包仓库

12,620 每月下载量
用于 7 crates

Apache-2.0

17KB
385 代码行数(不包括注释)

insta-cmd: Rust的insta测试库的命令行扩展

Build Status Crates.io License rustc 1.56.1 Documentation

简介

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!"));

依赖项

~1.3–2.2MB
~49K SLoC