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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…