It's better to output the test case name or test class name for each gradle test executor when i am setting the logger level to debug


(unit) #1

Gradle Version: 3.0
Operating System and JVM version: ubuntu14.04 , 1.7

It’s better to output the test case name or test class name for each gradle test executor when i am setting the logger level to debug.
E.g, When the maxParallelForks is set to 30, i want to know which test case is executed by ‘gradle test executor 15’.

@Override
public void processTestClass(final TestClassRunInfo testClass) {
    Thread.currentThread().setName("Test worker");
    try {
        processor.processTestClass(testClass);
    } finally {
        // Clean the interrupted status
        Thread.interrupted();
    }
}

(Benjamin Muschko) #2

Would you mind providing a little bit more context to your question? Why is it relevant in your case to know which test executor is used? Tests should be able to be executable independently from each other and should not hold any state. What behavior would you expect to see?