You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Alexander Kiel <al...@gmx.net> on 2009/09/25 19:27:36 UTC
Unit Tests in Intellij Idea
Hi,
I search for a possibility to run the unit tests just inside idea.
If I let idea compile all the classes, coping the fo files and letting
ant generate the source files, it runs 2110 test, but fails 1737 of
them.
Some of the errors:
No IF document handler for the requested format available:
application/pdf
Don't know how to handle "application/pdf" as an output format. Neither
an FOEventHandler, nor a Renderer could be found for this output format.
The file format is not supported. No ImagePreloader found for
test/resources/images/img-w-size.svg
Event model doesn't contain the definition for
org.apache.fop.fo.FOValidationEventProducer
Class org.apache.fop.intermediate.IFParserTestCase has no public
constructor TestCase(String name) or TestCase()
No IF document handler for the requested format available:
application/postscript
---------------------------------------------------------------------
Looks like configuration issues to me. So what can I do to be able to
run the unit tests?
One other related problem: I don't get the hyphenation unit tests to run
with Ant. I have the fop-hyph-1.2.jar in the classpath. I use Java 1.4,
JUnit 3.8 and Ant 1.7.
If I run junit-layout-hypenation, I get 5 errors out of 8 tests. I have
attached the ant output.
Best Regards
Alex
--
e-mail: alexanderkiel@gmx.net
web: www.alexanderkiel.net
Re: Unit Tests in Intellij Idea
Posted by Vincent Hennebert <vh...@gmail.com>.
Hi Alexander,
Alexander Kiel wrote:
> Hi Jeremias,
>
> thanks for that. I just changed the Idea output dirs to match that from
> Ant and now almost all tests run.
The test/layoutengine/disabled-testcases.xml file lists tests that don’t
currently pass. You have to set the fop.layoutengine.disabled property
to refer to it. Have a look at the following page:
http://wiki.apache.org/xmlgraphics-fop/HowToCreateLayoutEngineTests
HTH,
Vincent
> Best Regards
> Alex
>
> On Sat, 2009-09-26 at 23:05 +0200, Jeremias Maerki wrote:
>> I assume the META-INF/services directory doesn't get copied over to the
>> place where IDEA places its compiled Java classes. If they are not
>> available through the classpath, no plug-ins are registered and the PDF
>> renderer is basically just a dynamically loaded plug-in.
>>
>> Not sure about the hyphenation problem. It's not happening here.
>>
>> On 25.09.2009 19:27:36 Alexander Kiel wrote:
>>> Hi,
>>>
>>> I search for a possibility to run the unit tests just inside idea.
>>>
>>> If I let idea compile all the classes, coping the fo files and letting
>>> ant generate the source files, it runs 2110 test, but fails 1737 of
>>> them.
>>>
>>> Some of the errors:
>>>
>>> No IF document handler for the requested format available:
>>> application/pdf
>>>
>>> Don't know how to handle "application/pdf" as an output format. Neither
>>> an FOEventHandler, nor a Renderer could be found for this output format.
>>>
>>> The file format is not supported. No ImagePreloader found for
>>> test/resources/images/img-w-size.svg
>>>
>>> Event model doesn't contain the definition for
>>> org.apache.fop.fo.FOValidationEventProducer
>>>
>>> Class org.apache.fop.intermediate.IFParserTestCase has no public
>>> constructor TestCase(String name) or TestCase()
>>>
>>> No IF document handler for the requested format available:
>>> application/postscript
>>>
>>> ---------------------------------------------------------------------
>>>
>>> Looks like configuration issues to me. So what can I do to be able to
>>> run the unit tests?
>>>
>>>
>>> One other related problem: I don't get the hyphenation unit tests to run
>>> with Ant. I have the fop-hyph-1.2.jar in the classpath. I use Java 1.4,
>>> JUnit 3.8 and Ant 1.7.
>>>
>>> If I run junit-layout-hypenation, I get 5 errors out of 8 tests. I have
>>> attached the ant output.
>>>
>>>
>>> Best Regards
>>> Alex
>>>
>>>
>>> --
>>> e-mail: alexanderkiel@gmx.net
>>> web: www.alexanderkiel.net
>>>
>>
>>
>>
>> Jeremias Maerki
>>
>
Re: Unit Tests in Intellij Idea
Posted by Alexander Kiel <al...@gmx.net>.
Hi Jeremias,
thanks for that. I just changed the Idea output dirs to match that from
Ant and now almost all tests run.
Best Regards
Alex
On Sat, 2009-09-26 at 23:05 +0200, Jeremias Maerki wrote:
> I assume the META-INF/services directory doesn't get copied over to the
> place where IDEA places its compiled Java classes. If they are not
> available through the classpath, no plug-ins are registered and the PDF
> renderer is basically just a dynamically loaded plug-in.
>
> Not sure about the hyphenation problem. It's not happening here.
>
> On 25.09.2009 19:27:36 Alexander Kiel wrote:
> > Hi,
> >
> > I search for a possibility to run the unit tests just inside idea.
> >
> > If I let idea compile all the classes, coping the fo files and letting
> > ant generate the source files, it runs 2110 test, but fails 1737 of
> > them.
> >
> > Some of the errors:
> >
> > No IF document handler for the requested format available:
> > application/pdf
> >
> > Don't know how to handle "application/pdf" as an output format. Neither
> > an FOEventHandler, nor a Renderer could be found for this output format.
> >
> > The file format is not supported. No ImagePreloader found for
> > test/resources/images/img-w-size.svg
> >
> > Event model doesn't contain the definition for
> > org.apache.fop.fo.FOValidationEventProducer
> >
> > Class org.apache.fop.intermediate.IFParserTestCase has no public
> > constructor TestCase(String name) or TestCase()
> >
> > No IF document handler for the requested format available:
> > application/postscript
> >
> > ---------------------------------------------------------------------
> >
> > Looks like configuration issues to me. So what can I do to be able to
> > run the unit tests?
> >
> >
> > One other related problem: I don't get the hyphenation unit tests to run
> > with Ant. I have the fop-hyph-1.2.jar in the classpath. I use Java 1.4,
> > JUnit 3.8 and Ant 1.7.
> >
> > If I run junit-layout-hypenation, I get 5 errors out of 8 tests. I have
> > attached the ant output.
> >
> >
> > Best Regards
> > Alex
> >
> >
> > --
> > e-mail: alexanderkiel@gmx.net
> > web: www.alexanderkiel.net
> >
>
>
>
>
> Jeremias Maerki
>
Re: Unit Tests in Intellij Idea
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I assume the META-INF/services directory doesn't get copied over to the
place where IDEA places its compiled Java classes. If they are not
available through the classpath, no plug-ins are registered and the PDF
renderer is basically just a dynamically loaded plug-in.
Not sure about the hyphenation problem. It's not happening here.
On 25.09.2009 19:27:36 Alexander Kiel wrote:
> Hi,
>
> I search for a possibility to run the unit tests just inside idea.
>
> If I let idea compile all the classes, coping the fo files and letting
> ant generate the source files, it runs 2110 test, but fails 1737 of
> them.
>
> Some of the errors:
>
> No IF document handler for the requested format available:
> application/pdf
>
> Don't know how to handle "application/pdf" as an output format. Neither
> an FOEventHandler, nor a Renderer could be found for this output format.
>
> The file format is not supported. No ImagePreloader found for
> test/resources/images/img-w-size.svg
>
> Event model doesn't contain the definition for
> org.apache.fop.fo.FOValidationEventProducer
>
> Class org.apache.fop.intermediate.IFParserTestCase has no public
> constructor TestCase(String name) or TestCase()
>
> No IF document handler for the requested format available:
> application/postscript
>
> ---------------------------------------------------------------------
>
> Looks like configuration issues to me. So what can I do to be able to
> run the unit tests?
>
>
> One other related problem: I don't get the hyphenation unit tests to run
> with Ant. I have the fop-hyph-1.2.jar in the classpath. I use Java 1.4,
> JUnit 3.8 and Ant 1.7.
>
> If I run junit-layout-hypenation, I get 5 errors out of 8 tests. I have
> attached the ant output.
>
>
> Best Regards
> Alex
>
>
> --
> e-mail: alexanderkiel@gmx.net
> web: www.alexanderkiel.net
>
Jeremias Maerki