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

Is there a way to run test scenarios in parallel? #632

Open
suerta-git opened this issue Sep 30, 2021 · 1 comment
Open

Is there a way to run test scenarios in parallel? #632

suerta-git opened this issue Sep 30, 2021 · 1 comment

Comments

@suerta-git
Copy link

I have many scenarios with the same setup logic like this:

func TestSomething(t *testing.T) {
    Convey("Setup", t, func() {
        // do something...
        Convey("a", func() {
            ...
        })
        Convey("b", func() {
            ...
        })
        Convey("c", func() {
            ...
        })
    })
}

Currently they seem to be executed one by one. This causes a long executation time.
Since there is no dependencies between scenarios, so they can run in parallel but I don't know how. Am i missing something?

@riannucci
Copy link
Collaborator

There's currently no way to allow Convey suites to run in parallel (just top level TestXxx functions). However I'm slowly working on a change to the Convey internals to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants