java - Maven Surefire 插件 : what is meaning of filesystem in runOrder?

标签 java maven maven-failsafe-plugin

我想知道我的集成测试是否会按特定顺序运行并查看了 maven-failsafe-plugin documentation , 这是

runOrder:

Defines the order the tests will be run in. Supported values are "alphabetical", "reversealphabetical", "random", "hourly" (alphabetical on even hours, reverse alphabetical on odd hours), "failedfirst", "balanced" and "filesystem". Odd/Even for hourly is determined at the time the of scanning the classpath, meaning it could change during a multi-module build. Failed first will run tests that failed on previous run first, as well as new tests for this run. Balanced is only relevant with parallel=classes, and will try to optimize the run-order of the tests to make all tests complete at the same time, reducing the overall execution time. Note that the statistics are stored in a file named .surefire-XXXXXXXXX beside pom.xml, and should not be checked into version control. The "XXXXX" is the SHA1 checksum of the entire surefire configuration, so different configurations will have different statistics files, meaning if you change any config settings you will re-run once before new statistics data can be established.

  • Type: java.lang.String
  • Since: 2.7
  • Required: No
  • Default: filesystem

文件系统顺序是什么意思?创建文件的顺序?

最佳答案

当您在目录中列出文件时,大多数工具会按字母顺序显示它们,但它们真正的“默认”顺序是特定于实现的。

您可以使用 ls -U 在 linux 上显示该顺序。

来自 ls 联机帮助页:

-U     do not sort; list entries in directory order

关于java - Maven Surefire 插件 : what is meaning of filesystem in runOrder?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25978810/

相关文章:

Java继承Hibernate实体

java - 从多个 wsdls 获取 java 类

html - 在thymeleaf spring框架中从本地目录插入图像(使用maven)

maven - 确定 Maven 构建期间的 CPU 核心数

java - 斯坦福 CoreNLP 仅在 Windows 上失败

java - 正则表达式帮助

java - RxJava-我什么时候应该关注取消订阅?

spring - 2.1.4 中没有 org.springframework.ws.transport.http.HttpsUrlConnectionMessageSender

maven - 运行彼此隔离的集成测试

java - Maven 故障保护不运行测试