[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hello,
I am trying to create a plugin and a unit test for my plugin. What is the
standard way to do this?
I tried the following:
I imported the plugin project
org.eclipse.core.tests.resources
and all of its dependencies until I had no errors (as an example).
Then I created a JUnit Launch configuration for the test suite:
org.eclipse.core.tests.resources.AllTests
But when I run it, all of the tests fail with the following message:
junit.framework.AssertionFailedError: Workspace was not setup
at junit.framework.Assert.fail(Assert.java:51)
at junit.framework.Assert.assertTrue(Assert.java:38)
at junit.framework.Assert.assertNotNull(Assert.java:199)
at
org.eclipse.core.tests.harness.EclipseWorkspaceTest.setUp(EclipseWorkspaceTe
st.java:835)
at org.eclipse.core.tests.resources.IFileTest.setUp(IFileTest.java:233)
...
How do I register the Workspace during the Unit Tests?
Thanks,
Arturo