Unit test for Java Swing application

I look at the Unit Test Swing application and wonder what would be the best (easiest) approach to achieve this with almost full line coverage. If that matters, I use Eclipse Galileo for development.

Thank.

+3
source share
4 answers

I can not fully understand your question. A comprehensive testing strategy is hard to plan.

But if you have carefully prepared your test cases using a testing module ( i.e.JUnit ), you can analyze your software using a code coverage tool ( i.e.Cobertura ).

Eclipse JUnit, Cobertura Ant Maven.

-1

, . , : -)

, , . " " .

, GUI . - , GUI, POJO, . , , ... , . - , /, . , .

+4

, ?

, JUnit.

, Swing, GUI /? . , eclipse, GUIdancer. Google , , , .

+1

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


All Articles