#command-line #line-count #run-command #toml #command-output #checksum

app qbtt

Quinn's Basic TOML Tests for Rust is a very simple way to run and check tests right from the command line, with support for checksum, line_count, and string-contains checks

2 releases

0.1.1 Jul 21, 2024
0.1.0 Jul 5, 2024

#354 in Testing

Download history 1/week @ 2024-12-04 3/week @ 2024-12-11

62 downloads per month

MIT license

9KB
75 lines

QBTT: Quinn's Basic TOML Tests for Rust

Super-Simple Test Runner

QBTT runs commands from a TOML and checks to see if they match their expected output on stdout, checksum, and number of lines. QBTT is used by a number of my rust projects (command-line tools), like ngxav (a full-featured nginx log explorer) and webgrep (a full-browser-spec terminal-based web reader with js and pdf support).

How to use

install it from cargo: cargo install qbtt

create a .toml file with the correct entry syntax (see below)

then run the tests: qbtt test_cases.toml

TOML Syntax

[[test_cases]]
name = "Name"
run_type = "lines_count/checksum/output"
cmd = "<path_to_build_des> <args>"
expect = "xxx"
...

Contributing

please report any issues you encounter to the 'issues' tab. We welcome contributions (bug fixes or new features)! just make a pr.

Dependencies

~6–16MB
~226K SLoC

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy