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 gerhard oettl <ge...@oesoft.at> on 2006/01/06 13:18:59 UTC

testcases

Hello

How to get results from (or how to run) testcases?

I followed http:///xmlgraphics.apache.org/fop -> Development ->
Test -> Testing (Section Layout Engine Testing) -> Wiki page ->
How do I run them?

I altered two test in my svn-tree 
test/layoutengine/standard-testcases/

block_basic_1.xml: line 41:
from: <eval expected="0 0 360000 360000"
to:   <eval expected="0xxx 0 360000 360000"

and block_break-after.xml: line 51:
from: <eval expected="1"
to:   <eval expected="100"

also in a way they should/must fail.

Then i run according to the wiki page:
ant junit
ant junit-layout
ant junit-layout-standard
and the same again after a 
ant clean

but cannot see any effect. The build again results in 
a BUILD SUCCESSFUL and besides one warning nothing special.


What have i missed?

gerhard



-- 
 .''`.   gerhard oettl   on   Debian/Gnu Linux
: :'  :  
`. `'`   gpg key: 1024D/D59131AA 2002-06-18
  `-

Re: testcases

Posted by gerhard oettl <ge...@oesoft.at>.
On Fri, Jan 06, 2006 at 01:34:08PM +0100, Jeremias Maerki wrote:
>Are you sure that you have junit-3.8.1.jar in the lib directory of your
>Apache Ant installation? 

That's the point

>Does the build say something about JUnit?

I looked at this: (interpreting it "no error")

junit:

all: 

BUILD SUCCESSFULL

but should have looked at this:
[echo] JUnit Support NOT Present - Committers are required to have JUnit working




thanks
gerhard


>On 06.01.2006 13:18:59 gerhard oettl wrote:
>> Hello
>> 
>> How to get results from (or how to run) testcases?

-- 
 .''`.   gerhard oettl   on   Debian/Gnu Linux
: :'  :  
`. `'`   gpg key: 1024D/D59131AA 2002-06-18
  `-

Re: testcases

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Are you sure that you have junit-3.8.1.jar in the lib directory of your
Apache Ant installation? Does the build say something about JUnit?

On 06.01.2006 13:18:59 gerhard oettl wrote:
> Hello
> 
> How to get results from (or how to run) testcases?
> 
> I followed http:///xmlgraphics.apache.org/fop -> Development ->
> Test -> Testing (Section Layout Engine Testing) -> Wiki page ->
> How do I run them?
> 
> I altered two test in my svn-tree 
> test/layoutengine/standard-testcases/
> 
> block_basic_1.xml: line 41:
> from: <eval expected="0 0 360000 360000"
> to:   <eval expected="0xxx 0 360000 360000"
> 
> and block_break-after.xml: line 51:
> from: <eval expected="1"
> to:   <eval expected="100"
> 
> also in a way they should/must fail.
> 
> Then i run according to the wiki page:
> ant junit
> ant junit-layout
> ant junit-layout-standard
> and the same again after a 
> ant clean
> 
> but cannot see any effect. The build again results in 
> a BUILD SUCCESSFUL and besides one warning nothing special.
> 
> 
> What have i missed?
> 
> gerhard
> 
> 
> 
> -- 
>  .''`.   gerhard oettl   on   Debian/Gnu Linux
> : :'  :  
> `. `'`   gpg key: 1024D/D59131AA 2002-06-18
>   `-



Jeremias Maerki


Re: testcases

Posted by Manuel Mall <mm...@arcus.com.au>.
Gerhard,

that works for me. Just did the same you did and I get:

    [junit] Testcase: 
block_basic_1.xml(org.apache.fop.layoutengine.LayoutEngineTestSuite$1):   
Caused an ERROR
    [junit] Expected XPath expression to evaluate to '0xxx 0 360000 
360000', but got '0 0 360000 
360000' (XPath: /areaTree/pageSequence/pageViewport/@bounds)
....

    [junit] Test org.apache.fop.layoutengine.LayoutEngineTestSuite 
FAILED

Manuel

On Fri, 6 Jan 2006 08:18 pm, gerhard oettl wrote:
> Hello
>
> How to get results from (or how to run) testcases?
>
> I followed http:///xmlgraphics.apache.org/fop -> Development ->
> Test -> Testing (Section Layout Engine Testing) -> Wiki page ->
> How do I run them?
>
> I altered two test in my svn-tree
> test/layoutengine/standard-testcases/
>
> block_basic_1.xml: line 41:
> from: <eval expected="0 0 360000 360000"
> to:   <eval expected="0xxx 0 360000 360000"
>
> and block_break-after.xml: line 51:
> from: <eval expected="1"
> to:   <eval expected="100"
>
> also in a way they should/must fail.
>
> Then i run according to the wiki page:
> ant junit
> ant junit-layout
> ant junit-layout-standard
> and the same again after a
> ant clean
>
> but cannot see any effect. The build again results in
> a BUILD SUCCESSFUL and besides one warning nothing special.
>
>
> What have i missed?
>
> gerhard