semgrep / testo

Test framework for OCaml
ISC License
16 stars 1 forks source link

Add a way to specify the expected output in the test code #57

Closed mjambon closed 4 months ago

mjambon commented 4 months ago

rather than in a snapshot file.

mjambon commented 4 months ago

Proposed solution: expose the functions that capture stdout and/or stderr.

Sample signature:

val capture_stdout : (unit -> 'a) -> ('a * string)