Convert RedDeer tests to SWTbot ones or pure JUnit ones where feasible
Closed this issue · 3 comments
RedDeer is retiring from Eclipse Simrel and Docker tooling tests are already using Swtbot in tests (https://github.com/eclipse-linuxtools/org.eclipse.linuxtools/tree/master/containers/org.eclipse.linuxtools.docker.ui.tests) thus it make sense to convert the RedDeer ones into Swtbot ones(https://github.com/eclipse-linuxtools/org.eclipse.linuxtools/tree/master/containers/org.eclipse.linuxtools.docker.integration.tests) to have unified testing framework.
The tests in question are:
org.eclipse.linuxtools.docker.integration.tests.connection 9.3 sec 0 0 1 1
org.eclipse.linuxtools.docker.integration.tests.container 2 min 58 sec 0 0 13 13
org.eclipse.linuxtools.docker.integration.tests.image 1 min 41 sec 0 2 7 9
org.eclipse.linuxtools.docker.integration.tests.ui 2 min 43 sec 0 1 12 13
There may be overlap between swtbot and reddeer so some tests might not be needed at all.
For reference, here is Platform reddeer tests converted to plain junit ones eclipse-pde/eclipse.pde@b01e2c4 .
Looking at https://github.com/eclipse-linuxtools/org.eclipse.linuxtools/blob/master/containers/org.eclipse.linuxtools.docker.ui.tests/src/org/eclipse/linuxtools/internal/docker/ui/views/DockerImagesViewSWTBotTest.java and https://github.com/eclipse-linuxtools/org.eclipse.linuxtools/blob/59a645a031ea920929f53cb4da5f154fef8acdbc/containers/org.eclipse.linuxtools.docker.integration.tests/src/org/eclipse/linuxtools/docker/integration/tests/ui/ImageTabTest.java are testing the same view .
Thus if there is anything in the reddeer test not done in swtbot only it should be converted and added to the already existing swtbot test.
Closing. The tests are no longer easily runnable to make comparison.