Skip to content

Unable to run 2 spec files under same directory one with full scenarios and other with specific scenarios with a single command #2489

@rushi-alation

Description

@rushi-alation

Describe the bug
Upgraded the gauge version to 1.5.4 from 1.0.5. I want to run a scenario with a similar command as below:

gauge run specs/dir1/spec1.spec specs/dir1/spec2.spec --scenario="Scenario 1" --scenario="Scenario 2"

Worked on previous version of gauge. Want to run spec 1 file completely with all scenarios and from spec2 file want to run 2 specific scenarios using scenario name.
With the command above it runs only spec 2 with 2 scenarios and completely skips spec 1 for some reason
Using line number for scenario execution is not possible since we get the scenario names dynamically.

To Reproduce
Steps to reproduce the behavior:

  1. Initialise a gauge project
  2. Run the gauge command as above

Expected behavior
Test should execute all scenarios from spec1 and specified scenarios from spec2

Env Info
`Gauge version: 1.5.4
Commit Hash: 30a0c23

Plugins

html-report (4.2.0)
java (0.9.1)
python (0.4.1)
screenshot (0.1.0)
spectacle (0.1.4)
xml-report (0.4.0)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions