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

add timeline visualisation for parallel runners #126

Open
aslakhellesoy opened this issue Oct 13, 2019 · 4 comments
Open

add timeline visualisation for parallel runners #126

aslakhellesoy opened this issue Oct 13, 2019 · 4 comments

Comments

@aslakhellesoy
Copy link
Contributor

We're in the process of removing tight coupling to Gherkin 5 from Cucumber-JVM. Its TimelineFormatter is tightly coupled to Gherkin 5, and should be removed.

Moreover, the very useful functionality in TimelineFormatter should be available to users of other Cucumber implementations that support parallelism (currently only Cucumber.js).

We already have early stage support for rendering Cucumber in cucumber-react, which is wrapped as a standalone command-line tool in html-formatter. It would make sense to improve cucumber-react with the ability to render the same UI as the Cucumber-JVM TimelineFormatter (using React).

Also see cucumber/common#755

/cc @charlierudolph @boaty82 @mpkorstanje @vincent-psarga

@stale
Copy link

stale bot commented Dec 12, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs.

@davidjgoss
Copy link
Contributor

Do we have any screenshots that show what the timeline formatter did?

@mpkorstanje
Copy link
Contributor

mpkorstanje commented Nov 11, 2023

Sure. The purpose of the timeline is to show which thread/worker executed a scenario. This is helpful when analyzing the performance of parallel execution.

I put some 60-70 tests into a single file and ran it parallel with a random delay in one of the steps.

Feature: Belly

  Scenario: a few cukes 1
    Given I have 42 cukes in my belly
    When I wait 1 hour
    Then my belly should growl
    
    ... repeat lots

Screenshot from 2023-11-11 13-46-24

The thread name can be derived from the TestCaseStarted.workerId event.

Relevant sources:

@davidjgoss
Copy link
Contributor

Thanks @mpkorstanje, yeah we could totally do this with the messages now.

@davidjgoss davidjgoss changed the title Implement Timeline functionality in HTML Formatter (Cucumber-React) add timeline visualisation for parallel runners Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Next
Development

No branches or pull requests

3 participants