简体   繁体   English

Maven Surefire插件:runOrder中filesystem的含义是什么?

[英]Maven Surefire plugin: what is meaning of filesystem in runOrder?

I wanted to know if my integration tests will run in specific order and looked at the maven-failsafe-plugin documentation , which is 我想知道我的集成测试是否会按特定顺序运行,并查看maven-failsafe-plugin 文档 ,即

runOrder : 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. Balanced仅与parallel = classes相关,并将尝试优化测试的运行顺序,以使所有测试同时完成,从而减少总体执行时间。 Note that the statistics are stored in a file named .surefire-XXXXXXXXX beside pom.xml, and should not be checked into version control. 请注意,统计信息存储在pom.xml旁边名为.surefire-XXXXXXXXX的文件中,不应检入版本控制。 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. “XXXXX”是整个surefire配置的SHA1校验和,因此不同的配置将具有不同的统计文件,这意味着如果您更改任何配置设置,您将重新运行一次,然后才能建立新的统计数据。

  • Type: java.lang.String 键入: java.lang.String
  • Since: 2.7 自: 2.7
  • Required: No 要求: No
  • Default: filesystem 默认值: filesystem

What is meaning of filesystem order? 文件系统顺序是什么意思? the order in which files are created? 文件的创建顺序?

When you list files in a directory most tools show them in alphabetical order, but their real "default" order is implementation specific. 当您列出目录中的文件时,大多数工具按字母顺序显示它们,但它们真正的“默认”顺序是特定于实现的。

You can use ls -U to show that order on linux. 您可以使用ls -U在linux上显示该顺序。

from a ls manpage: 来自ls联机帮助页:

-U     do not sort; list entries in directory order

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM