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

Realtime integration in the HTML reporter in StrykerJS #4092

Open
xandervedder opened this issue Apr 7, 2023 · 0 comments · May be fixed by #4180
Open

Realtime integration in the HTML reporter in StrykerJS #4092

xandervedder opened this issue Apr 7, 2023 · 0 comments · May be fixed by #4180
Assignees
Labels
🚀 Feature request New feature request hacktoberfest https://hacktoberfest.digitalocean.com/
Milestone

Comments

@xandervedder
Copy link
Contributor

xandervedder commented Apr 7, 2023

This issue depends on stryker-mutator/mutation-testing-elements#2434


Realtime Reporting

Add support for realtime reporting in the HTML reporter in StrykerJS

Implementation

  1. When all mutants have been created, open the file in the browser with its initial state.
  2. After opening the HTML file, open an endpoint with the text/event-stream header.
  3. When a mutant is tested, send an event to the browser. This event should at least contain a mutant id and the new status.
    a. It might also be nice to put these mutants in a list, and output them when a client is connected. This could be used to prevent missing mutant data in the browser.
  4. When mutation testing is done, send a different event so that the report knows it won't recieve any new updates.
  5. Finally write the complete version to disk (as we currently do).

Question(s)

  1. Is there currently a way to open the report automatically in the browser?
  2. Should this functionality be behind a flag, like in Stryker.NET (-o, opens the browser automatically)?
  3. Should we implement this with the built-in http module or should we use express for this?
@xandervedder xandervedder self-assigned this Apr 7, 2023
@xandervedder xandervedder added the 🚀 Feature request New feature request label Apr 7, 2023
@nicojs nicojs added this to the 7.1 milestone Jun 3, 2023
@nicojs nicojs modified the milestones: 7.1, 7.2 Jun 24, 2023
@nicojs nicojs added the hacktoberfest https://hacktoberfest.digitalocean.com/ label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 Feature request New feature request hacktoberfest https://hacktoberfest.digitalocean.com/
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants