Java 测试没有在junit中并发运行我的问题是需要所有@Test并行运行

Java 测试没有在junit中并发运行我的问题是需要所有@Test并行运行,java,selenium,junit,Java,Selenium,Junit,测试一个接一个地运行我希望所有测试都在同一个类中并发运行。 下面是我的pom文件和配置属性 @Execution(ExecutionMode.CONCURRENT) 公共类Nfr扩展了基 <properties> <maven.compiler.source>16</maven.compiler.source> <maven.compiler.target>16</maven.compiler.target>

测试一个接一个地运行我希望所有测试都在同一个类中并发运行。 下面是我的pom文件和配置属性

    @Execution(ExecutionMode.CONCURRENT)
公共类Nfr扩展了基

<properties>
    <maven.compiler.source>16</maven.compiler.source>
    <maven.compiler.target>16</maven.compiler.target>
</properties>

<dependencies>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.12</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>io.github.bonigarcia</groupId>
        <artifactId>webdrivermanager</artifactId>
        <version>4.3.1</version>
    </dependency>
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>3.6.0</version>
    </dependency>
    <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter</artifactId>
        <version>RELEASE</version>
        <scope>compile</scope>
    </dependency>


</dependencies>
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.7.0</version>

            <configuration>
                <source>org.example.perf</source>
                <target>org.example.perf</target>
            </configuration>
        </plugin>
    </plugins>
</build>

16
16
朱尼特

我想在同一个班上一起运行所有测试有什么建议吗