Description
Related issue(s) or PR(s):
I don't know, maybe none ?
Related project scope(s):
Grading test functions with ?before : 'a -> ... -> unit
or ?before_user: 'a -> ... -> unit
as optionnal argument
Related user(s):
I don't know, maybe only me ?
The problem
Hello,
Actually, the main utility of preprocessing functions ?before
or ?before_user
used as argument of test_function...
is to introduce references or side-effects. But I'm wondering if theses functions can also print some messages/sections before the test report, and I'm actually not able to find another way to do that.
I've tried to wrap ?test
argument, but a message "Computing..." is created before the test.
Wanted solution
I want arguments like ?before: 'a -> ... -> Learnocaml_report.t
or ?before_user: 'a -> ... -> Learnocaml_report.t
for test_function
like functions.
Considered alternatives
At the moment, I have to use after
function, then add some fixs by adding a header and removing the last line.
Additional context
My actual use of this feature is to add some breaklines between tests, by just creating before
functions fun _ -> breakline
, while breakline: Learnocaml_report.t
is use a Message (Break, Informative)
report for instance.