Bad logging string misses parameters


(Dimitar Dimitrov) #1

org.gradle.api.internal.tasks.testing.junit.result.TestOutputStore.Reader#Reader() has the following line:

throw new IllegalStateException(String.format("Test outputs data file '{}' exists but the index file '{}' does not", outputsFile, indexFile));

The problem is that String.format() does not recognize the {} placeholder and the names of the files are lost and gradle outputs:

FAILURE: Build failed with an exception.
  * What went wrong:
Execution failed for task ':aggregatedTestReport'.
> Test outputs data file '{}' exists but the index file '{}' does not

(René Groeschke) #2

Hello. thanks for reporting. just fixed it on master

(https://github.com/gradle/gradle/commit/b4f924b0d6de89946f86f982f8fd8b4f7629fc76)