save-cli icon indicating copy to clipboard operation
save-cli copied to clipboard

Support for real-time test reporting

Open orchestr7 opened this issue 3 years ago • 1 comments

Right now save-cli is writing test report after all logic is already done. We keep all results in the memory and only after all tests are processed save provides them to a reporter that is writing results.

We have two variants here:

  1. in real time write results to the file (one test - one file)
  2. append results to some pipe/file in a real time

That will be useful for save-cloud

orchestr7 avatar Jul 12 '22 16:07 orchestr7

We keep all results in the memory and only after all tests are processed save provides them to a reporter that is writing results.

That's not true. Reporter already has a number of 'lifecycle listeners', e.g. onEvent(event: TestResult). PlainTextReporter is writing all data in real time, as does JSON reporter. However, for JSON reporter report becomes properly formatted only after the execution is finished, because JSON is a structured text format, unlike plain text.

petertrr avatar Jul 13 '22 08:07 petertrr