[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mylyn-reviews-dev] r4e tests
|
Hi,
I have pasted some notes below.
1) IO Exception, Directory can not be created
Some test cases were designed to write into temporary directories
in order to facilitate validation
Is it possible to access a folder with writing permissions within
the Hudson environment ?
I would recommend using java.io.tmpdir or the workspace for that.
2) There are some classes with the word "Test" that are not actual
Junit tests, however the environment seems to pick them up as test
cases. Where can we configure the filter for this ?
You can use includes/excludes in the configuration section of the maven-osgi-test-plugin:
<includes>
<include>**/Test*.java</include>
<include>**/*Test.java</include>
<include>**/*TestCase.java</include>
</includes>
Unfortunately there is no up to date online documentation for Tycho but you can take a look at
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html to get a sense how that works.
3) java.lang.NoClassDefFoundError
The test plug-in org.eclipse.mylyn.reviews.r4e.core.tests
specifies dependencies with org.eclipse.egit.ui,
which shall be loaded to execute some test cases..
the pom.xml under this project does not define dependent osgi
components as far as I can see.
How do we find out where are these dependencies configured.
Generally, Tycho will resolve dependencies automagically based on the manifest. To ensure that EGit is properly configured in the test harness I would add the EGit feature to the list of explicit test dependencies in the pom of the R4E test bundle.
Steffen
--
Steffen Pingel
Committer,
http://eclipse.org/mylynSenior Developer,
http://tasktop.com