I am using SWTBOT with tycho-surfire to test an eclipse application. The tests runs individually fine, but when I combine them I need to switch the workspace after each test, or specify somehow a specific workspace for each test. When I try to switch the workspace from inside the test with this code:
the simulator reaches the OK button and press it, the workbench closes but never starts again. There was an error asking to set the property eclipse.vm, and I did. The error is gone but still can not switch the workspace.
Is there a way to set a separate workspace for each test when running SWTBOT headless tests from tycho and maven?
I tried to change the -data command option, but the test fails with the following exception: java.lang.ClassNotFoundException, Could not find the main class