question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Streaming individual test results

See original GitHub issue

🚀 Feature Proposal

Right now we collect test results from a whole suite before passing it to a testResultsProcessor (and printing it). I’d like to also be able to know as each individual test completes without waiting for the whole suite.

Motivation

2 use cases comes to mind:

  1. IDEs and other reporters are able to display individual test results as they come in, instead of waiting for the whole suite
  2. Tracking down which test hangs a test suite (see https://github.com/webpack/webpack/pull/7311 which just hangs - seeing the last completed test would be great)

As a bonus to the last point, we might want to stream multiple states per test - pending, running and complete or something might make sense.

Example

Not really sure how it would be used. I guess an extra method in the reporter? Might make sense as part of Jest Hooks? https://github.com/facebook/jest/blob/master/packages/jest-cli/src/jest_hooks.js

Pitch

The UI for it does not have to live within Jest, but we should power custom reporters and test result processors to display real time data about a test suite

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
aaronabramovcommented, May 29, 2018

@SimenB those are still two different reporting mechanisms:

  1. reporting in jest via different reorters “coverage, default, summary, etc.”
  2. sending flux actions within jest-circus - that has no way outside its current vm though

afterAll shouldn’t be a problem any more, we chose to not fail any individual tests, but rather throw a global error that’ll fail the whole suite

0reactions
github-actions[bot]commented, May 12, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Streaming Test Results - Cypress
In this blog post, I will show how to receive individual test results as soon as each test is finished, without waiting for...
Read more >
Speedify Livestreaming Test
The Livestreaming test evaluates your upload performance with Speedify to estimate what video streaming quality you can consistently expect ...
Read more >
Streaming Media Performance | Microsoft Learn
The assessment provides test results for video glitches. It reports glitches for one-second intervals throughout the running of the video ...
Read more >
Video Quality Report - Google
Daily video activity is averaged over 30 days. Individual results may vary and the results for the same ISP may also vary between...
Read more >
Significance tests for streaming data - Cross Validated
Could we also consider the variance, or even the results of individual folds? There are variations of the ANOVA and the Friedman test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found