You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by Mirko Jahn <mi...@gmail.com> on 2007/01/16 07:02:53 UTC
[mac stuff] install doc updated
Hi,
I finished my test with the mac for today and managed to install and build
uima on a plain macbook. I included my experiences with the installation in
the wiki, so that others can just follow the steps (
http://cwiki.apache.org/confluence/display/UIMA/Extracting+from+SVN+components+into+Eclipse+Projects
).
The last thing I did was creating the projects with:
mvn install
This worked form the point of building. Unfortunately do I get 5 errors in
the tests. I tried to find the source of the error, but the output of the
test was to big and even a dump of the output in a text file didn't help me,
because it is more than 3 MB big and hard to search without RegEx support in
the editor. I saw that there are test results placed under
target/surefire-reports/* and found a way to generate the html reports based
on them (which is not documented yet I think), but even in those everything
looks fine. No error messages. Any suggestions? How do you look for the
errors in such a case?
-- Mirko
Re: [mac stuff] install doc updated
Posted by Adam Lally <al...@alum.rpi.edu>.
On 1/16/07, Mirko Jahn <mi...@gmail.com> wrote:
> Thanks for the tips! That helped me to idenitfy the failing unit tests.
>
> I now figured out that there are tests in cpm, which only fail with
>
> > mvn test
>
> but not with
>
> > mvn install
>
I am able to reproduce that, on Windows even.
I'm not sure what the cause is but I wonder if it's possible that the
working directory might be set differently in these two cases? We may
have some dependencies on that. Just a guess. I'll open a JIRA
issue.
-Adam
Re: [mac stuff] install doc updated
Posted by Mirko Jahn <mi...@gmail.com>.
Thanks for the tips! That helped me to idenitfy the failing unit tests.
I now figured out that there are tests in cpm, which only fail with
> mvn test
but not with
> mvn install
The failing tests are:
Test set:
org.apache.uima.collection.impl.CollectionProcessingEngine_implTest
Test set: org.apache.uima.collection.impl.cpm.SofaCPE_SofaUnawareCC_Test
Test set: org.apache.uima.collection.impl.cpm.SofaCPE_Test
Test set: org.apache.uima.collection.impl.cpm.SofaMixedCPE_Test
These tests are fine when tested in Eclipse (here the testcase
org.apache.uima.collection.impl.cpm.CpmCollectionReader_ErrorTests#testHasNextWithOutOfMemoryErrorfails).
Any suggestions, what I might be doing wrong? I thought, "mvn install"
refers to "mvn test", so it shouldn't create different results.
BTW, right now I am using the latest Java Version available for Mac:
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
-- Mirko
On 1/16/07, Adam Lally <al...@alum.rpi.edu> wrote:
>
> On 1/16/07, Marshall Schor <ms...@schor.com> wrote:
> > I install Eclipse on the Mac; then I checkout the projects to Eclipse;
> > then run the build;
> > then use Eclipse Search -> File, over the whole workspace, for files of
> > *.xml, looking for the string
> > <<< FAILURE!
> >
>
> I do a grep (case senstive) for "FAILURE" in the
> target/surefire-reports directory of the component whose build test
> failed. (Usually you can tell which test case failed by the last few
> lines of test output.) But then to actually debug the test I run it
> in Eclipse.
>
> BTW, be sure you update from SVN, I fixed several unit tests problems
> yesterday. There are also a few new JIRA issues open relating to
> failures in Sun Java 1.4 (and I see today, 1.6), so you may want to
> use a different Java for now.
>
> -Adam
>
Re: [mac stuff] install doc updated
Posted by Adam Lally <al...@alum.rpi.edu>.
On 1/16/07, Marshall Schor <ms...@schor.com> wrote:
> I install Eclipse on the Mac; then I checkout the projects to Eclipse;
> then run the build;
> then use Eclipse Search -> File, over the whole workspace, for files of
> *.xml, looking for the string
> <<< FAILURE!
>
I do a grep (case senstive) for "FAILURE" in the
target/surefire-reports directory of the component whose build test
failed. (Usually you can tell which test case failed by the last few
lines of test output.) But then to actually debug the test I run it
in Eclipse.
BTW, be sure you update from SVN, I fixed several unit tests problems
yesterday. There are also a few new JIRA issues open relating to
failures in Sun Java 1.4 (and I see today, 1.6), so you may want to
use a different Java for now.
-Adam
Re: [mac stuff] install doc updated
Posted by Marshall Schor <ms...@schor.com>.
Mirko Jahn wrote:
> <snip> Unfortunately do I get 5 errors in
> the tests. I tried to find the source of the error, but the output of the
> test was to big and even a dump of the output in a text file didn't
> help me,
> because it is more than 3 MB big and hard to search without RegEx
> support in
> the editor. I saw that there are test results placed under
> target/surefire-reports/* and found a way to generate the html reports
> based
> on them (which is not documented yet I think), but even in those
> everything
> looks fine. No error messages. Any suggestions? How do you look for the
> errors in such a case?
I install Eclipse on the Mac; then I checkout the projects to Eclipse;
then run the build;
then use Eclipse Search -> File, over the whole workspace, for files of
*.xml, looking for the string
<<< FAILURE!
-Marshall