【问题标题】:Run JUnit5 tests in strict order以严格的顺序运行 JUnit5 测试
【发布时间】:2018-08-28 06:58:20
【问题描述】:

我想使用 JUnit5 进行测试,但看起来 @ScenarioTest 尚未实现。

<dependency>
    <groupId>org.junit.jupiter</groupId>
    <artifactId>junit-jupiter-engine</artifactId>
    <version>5.2.0</version>
    <scope>test</scope>
</dependency>

如何按严格的顺序运行测试?

【问题讨论】:

  • 据我所知,不是,你也不应该这样做。一个测试应该被完全装箱,这意味着它们总是应该有正确的相同结果,无论它们以什么顺序运行,或者取决于是否运行其他测试

标签: java junit junit5


【解决方案1】:

还没有,但可能是 5.4:https://github.com/junit-team/junit5/issues/13

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-09-10
    • 2017-04-01
    • 2018-05-29
    • 1970-01-01
    • 2017-11-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多