≈ the.bay.news

Behave: black-box differential tests for CLI rewrites (found 40 bugs in uutils)

The Rust Programming Language Forum
Behave: black-box differential tests for CLI rewrites (found 40 bugs in uutils)
Hi all. I have been sending small fixes to the uutils projects (the Rust rewrites of coreutils, findutils, sed and procps), and most of the bugs I found came from one tool I built for it, so I thought it might be useful to others here who are porting a CLI to Rust. behave runs the original binary (for example GNU sort) as a black box with lots of inputs: flags, stdin, files, empty arguments, error paths. It records stdout, stderr and the exit code of each run as plain YAML test cases. Then it r...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.