Skip to content

Commit

Permalink
[SUREFIRE-2055] Always show random seed
Browse files Browse the repository at this point in the history
  • Loading branch information
delanym committed Apr 5, 2022
1 parent daf717e commit d15079a
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -3114,9 +3114,12 @@ protected void warnIfIllegalFailOnFlakeCount() throws MojoFailureException

private void printDefaultSeedIfNecessary()
{
if ( getRunOrderRandomSeed() == null && getRunOrder().equals( RunOrder.RANDOM.name() ) )
if ( getRunOrder().equals( RunOrder.RANDOM.name() ) )
{
setRunOrderRandomSeed( System.nanoTime() );
if ( getRunOrderRandomSeed() == null )
{
setRunOrderRandomSeed( System.nanoTime() );
}
getConsoleLogger().info(
"Tests will run in random order. To reproduce ordering use flag -D"
+ getPluginName() + ".runOrder.random.seed=" + getRunOrderRandomSeed() );
Expand Down

0 comments on commit d15079a

Please sign in to comment.