I am writing an acceptance test suite in Junit5. I'd like to generate customised output (html) specific to my domain as a result of this. This output will contain data that is obtained from lifecycle events such as test started (or before all tests) and also some data comes from non-lifecycle events - for example: in the middle of the execution of a test I'd like to emit some data that is also collected for reporting.
Can someone tell me how to do this? I am aware of custom listeners and extensions which are all good for lifecycle events however it is not easy to add some non-lifecycle data in the middle of test execution around this?