Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for real-time test reporting #426

Open
orchestr7 opened this issue Jul 12, 2022 · 1 comment
Open

Support for real-time test reporting #426

orchestr7 opened this issue Jul 12, 2022 · 1 comment
Assignees

Comments

@orchestr7
Copy link
Member

orchestr7 commented Jul 12, 2022

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

@petertrr
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants