How to effectively test JUnit plug-ins Eclipse RCP

We have a rather large RCP Eclipse application and are not sure how to test its plugins correctly.

  • For each plugin there is a test fragment containing Unit tests.
  • For small tests that do not require the launch of the RCP platform, we simply call the "standard" JUnit test runner.

enter image description here

  • For tests that require the RCP platform, it is possible to test it using the JUnit test runner.

enter image description here

  • For JUnit plugin tests, you can determine which plugins load when the RCP platform starts.

enter image description here enter image description here

  • Problem . Running JUnit Plugin tests requires a lot of time (seconds instead of milliseconds for a simple JUnit test) and resources, since the RCP platform and all plugins must be launched.

  • . , ? RCP (, )? Mocking , , RCP Platform?

, TDD JUnit- , .

!

+3
1

: ! .

, , (-?) , , , . , (.. SWT) () . .

RCP.

, , . . : fooobar.com/questions/167267/...

, , JUnit. API- .

, API- , , , SWT JFace API, ... , . , IViewPart ( e4) , , , (, ).

+4

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


All Articles