Skip to content

Feature request: Run multiple scenarios in a single spec in parallel #2779

@aykutalpp

Description

@aykutalpp

Gauge version and plugins

Gauge version: 1.6.20
Plugins
-------
html-report (4.3.3)
java (0.12.0)
screenshot (0.3.2)
spectacle (0.2.1)
xml-report (0.5.2)

What I am trying to achieve
I would like to execute multiple scenarios inside the same .spec file in parallel.
For example, I want to run 6 scenarios concurrently from a single spec file in order to reduce execution time.

What I tried
I configured my Maven pom.xml with the following flags:

<flags>
    <flag>--parallel</flag>
    <flag>--strategy=lazy</flag>
    <flag>-n=6</flag>
</flags>

What happens

Parallel execution only works at the spec level.

If I have 2 spec files, they run in 2 parallel.

But if I only have 1 spec file with many scenarios, Gauge still executes them sequentially (only 1 worker runs).

Expected behavior
I would like Gauge to support parallel execution at scenario level, so that multiple scenarios within a single spec can run at the same time (e.g. 6 parallel streams on the same spec).

Why this matters

I have spec files containing dozens of scenarios.

Splitting them into multiple smaller spec files is not practical in my project.

Scenario-level parallelization would save a lot of execution time.

Question

Is this currently a limitation by design?

Are there any recommended workarounds to achieve scenario-level parallel execution?

If not supported, could this be considered as a feature request?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions