Skip to main content

Comments

5 comments

  • Jordan Western

    Hi!

    Can you explain exactly what you are looking for?

    I think I understand, but what is the use case?

    NUnit will execute parallel 'features' but i'm not sure why this is more desirable than executing all of the tests in parallel

    0
  • 陈 俊杰

    Hi Jordan,

    I am using SpecFlow + Runner as the test runner. The behavior in Nunit or MSTest is "Features can run in parallel with each other. Scenarios from the same feature are running on the same test thread.". However, for SpecRun, the parallel scheduling unit is scenario, which is the scenarios under the same feature will be executed in parallel. What I expect is that Feature1, Feature2, Feature3 can run in parallel instead of scenario 1, 2, 3 in Feature1 run in parallel. Thanks.

    Regards,

    Jason

    0
  • Jordan Western

    Hi Jason,

    for the SpecFlow+ Runner, take this example.

    You have 10 tests in total across 5 features (2 tests per feature), and you have 10 threads available, then all 10 tests across all features will execute.

    The runner just schedules from all the tests and will execute as many at one time as you have threads available (set in the .srprofile file).

    I don't think there's any way to schedule these in the way that you describe.

    0
  • 陈 俊杰

    Hi Jordan,

    Thank you. I think currently, we might need SpecFlow Team to support this feature first. Thank you for your help.

    Regards,

    Jason

    0
  • Jordan Western

    Hi Jason,

    You're welcome, sorry I couldn't give you what you were looking for, please feel free to add a feature request.

    0

Please sign in to leave a comment.

Powered by Zendesk