Skip to content

When executing multi-threaded, what way can dependent methods and ordinary methods be executed under the same thread? #3262

@Jinglong233

Description

@Jinglong233
public class TestclassSample {

  @Test
  public void dependsOnMethods() {
    System.out.println("dependsOnMethods");
  }
  
  @Test(dependsOnMethods = "dependsOnMethods")
  public void test2() {
    System.out.println("test2");
  }
}

How to ensure that dependsOnMethods and test2 are executed under the same thread when multi-threaded execution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions