Skip to content
Myr

📝 Clarify testing documentation about checking `stderr` (#335)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christophe Gabard · committed by GitHub · parent 4d26e77 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
  • Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/tutorial/testing.md+1 added-1 removed
68 unmodified lines
6970Then we check that the text printed to "standard output" contains the text that our CLI program prints.7172!!! tip73 You could also check `result.stderr` for "standard error".73 You could also check `result.stderr` for "standard error" independently from "standard output" if your `CliRunner` instance is created with the `mix_stderr=False` argument.7475!!! info76 If you need a refresher about what is "standard output" and "standard error" check the section in [Printing and Colors: "Standard Output" and "Standard Error"](printing.md#standard-output-and-standard-error){.internal-link target=_blank}.77
136 unmodified lines