Simple rust program with some unit tests Run the program Run program with a valid number $ cargo run -- 123 Run program with some invalid input $ cargo run -- foo $ cargo run -- ' ' $ cargo run -- 256 Run the tests Run tests in default terse mode $ cargo test Run tests in verbose mode $ DEBUG=1 cargo test -vv -- --nocapture See also Kata Containers unit testing presentation Kata Containers unit test advice document