Le 2024-07-22 à 21 h 14, Romain Manni-Bucau a écrit :

you must not skip surefire is compiler execution is skipped. Surefire has its own inputs and even if the overlap with compiler can be important it is also far to be 1-1 (…snip…) surefire can have custom paths, must consider the env, props etc...

Skipping the tests when nothing changed would be optional, controlled by Surefire plugin configuration. "Nothing to recompile" is one condition that Surefire is free to use or ignore or combine with other criteria. The issue is simply about making that information available outside the compiler plugin.

I have no strong opinion about return value versus a flag to set somewhere, as they both work. However, a flag is likely to be forgotten by a lot of plugins, while a return value forces each plugin to at least said if they did any work. An enumeration with 3 values may be simple enough for not being a burden.

    Martin

Reply via email to