Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Junit console output to log

I want to know,

How can I get Junit console output to log file?

As example, I have put Assert.equals() methods. I want to know passed method and what are the failed methods also. I tried to find method to do that, but I was unable.

like image 833
Gayan_Nanayakkara Avatar asked Aug 11 '26 03:08

Gayan_Nanayakkara


1 Answers

If you are using eclipse, you can achieve it by going to Run configuration > Common > Output file> giving path of your log file.

enter image description here

like image 177
sAm Avatar answered Aug 13 '26 15:08

sAm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!