Maven Surefire插件:runOrder中filesystem的含义是什么? [英] Maven Surefire plugin: what is meaning of filesystem in runOrder?

查看:451
本文介绍了Maven Surefire插件:runOrder中filesystem的含义是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I wanted to know if my integration tests will run in specific order and looked at the maven-failsafe-plugin documentation, which is


runOrder

定义测试运行的顺序。支持的值是
按字母顺序排列,反向字母,随机,每小时
(按字母排列均匀小时,按字母顺序倒数计时),
failedfirst,balance和filesystem 。奇数/偶数小时是在扫描类路径时确定的
,这意味着在多模块构建期间它可能会改变
。首先失败将在先前的运行中运行
失败的测试,以及此次运行的新测试。
Balanced仅与parallel = classes相关,并且将尝试
优化测试的运行顺序,以使所有测试在
同时完成,从而减少总体执行时间。请注意,
统计信息存储在
pom.xml旁边名为.surefire-XXXXXXXXX的文件中,不应检入版本控制。 XXXXX
是整个surefire配置的SHA1校验和,因此
不同的配置将有不同的统计文件,这意味着
如果您更改任何配置设置,您将在新的之前重新运行一次
统计数据可以建立。

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.


  • 类型: java.lang.String

  • 从: 2.7

  • 必填:

  • 默认值: filesystem

  • Type: java.lang.String
  • Since: 2.7
  • Required: No
  • Default: 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.

您可以使用ls -U在Linux上显示该订单。

You can use ls -U to show that order on linux.

来自ls联机帮助页:

-U     do not sort; list entries in directory order

这篇关于Maven Surefire插件:runOrder中filesystem的含义是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆