From 69f9e1d5ced94b80487473f93d1bb447eff419c1 Mon Sep 17 00:00:00 2001 From: Thomas Jensen Date: Sat, 28 Sep 2024 15:59:42 +0200 Subject: [PATCH] Describe `discard-stderr` option in black-box test cases --- pages/testing.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/testing.md b/pages/testing.md index ac49bf4..fdf9b8f 100644 --- a/pages/testing.md +++ b/pages/testing.md @@ -151,6 +151,9 @@ A test case that tests a **successful** invocation of boxes looks like this: Sections may be empty, e.g. if there are no arguments or there is no input. The `:DESC` section is optional, so it is valid if the test case starts with an `:ARGS` section. The order of sections is fixed. +The `:EXPECTED` section understands an additional argument `discard-stderr`, which instructs the test runner to, well, +discard stderr output instead of including it with the actual test result to be checked. + A test case that makes sure boxes **fails** under certain conditions looks like this: :DESC