Running JUnit through Eclipse

I run JUnit tests through Eclipse (Helios, 1.3.0) through the ant build file and the external ant constructor. I was wondering if it is possible to use the Eclipes JUnit UI when they start, so that I can see the green or red bar there, instead of seeing success / failure messages in the console. Any pointers are welcome. Thank!

+3
source share
3 answers

If you must run your tests through ant, then there is no direct way to see the progress in the JUnit view. However, if you use the JUnit ant task and set the output format of the test results to xml:   

You can then open this file in a JUnit window. Click the button in the right corner and select Import. Then browse to the file you want to open: JUnit View in Eclipse

+4
source

If you have a JUnit link for the project, I think you can right-click on the project and select Run As > JUnit Testand this will run all the tests in Project. Check out this post.

0
source

Source: https://habr.com/ru/post/1796200/


All Articles