Can I retrieve currently running test name like in JUnit (using getName() or rules)?
@Test
public void fooBar(){
System.out.println(magic()); //should print "fooBar"
}
P.S. I don't want use some self-written tool based on stack traces.
See Question&Answers more detail:os