Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

What is meaning of filesystem order? the order in which files are created?

like image 322
daydreamer Avatar asked Sep 22 '14 16:09

daydreamer


People also ask

How do I disable surefire report in maven?

skipSurefireReport: If set to true the surefire report generation will be skipped. https://maven.apache.org/surefire/maven-surefire-report-plugin/report-mojo.html#skipSurefireReport. this code will skip the surefire tests.

What is maven surefire plugin?

The Surefire Plugin is used during the test phase of the build lifecycle to execute the unit tests of an application. It generates reports in two different file formats: Plain text files ( *. txt ) XML files ( *.

What is Argline in POM XML?

Java command line when Run/Debug configuration is launched, the Surefire argline defined in maven pom. xml are automatically appended. This causes issues when the properties need to be overridden by specifying a system property in the VM options of the Run/Debug configuration.


1 Answers

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.

from a ls manpage:

-U     do not sort; list entries in directory order
like image 141
František Hartman Avatar answered Oct 10 '22 02:10

František Hartman