I have a test written in JUnit. On fail I would like to append a file to the report.
My thoughts: I just have to get the path and report name, so I can put a custom file right next to it, so it can be easily found.
How do I get that report file or path name?
Additional information: Those tests are run via Eclipse or Jenkins.
Update: the name can be found like this: Get name of currently executing test in JUnit 4
The path seems to be a surefire topic ...