
|
[dokuwiki]
||
[Date Prev]
[03-2007 Date Index]
[Date Next]
||
[Thread Prev]
[03-2007 Thread Index]
[Thread Next]
[dokuwiki] Re: DokuWiki tests run errors
- From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Mon, 26 Mar 2007 20:55:19 +0200
On Tue, 13 Mar 2007 11:09:35 +0100
Guy Brand <gb@xxxxxxxxxxxxxxxxx> wrote:
> hi all
>
>
> Am I the only one having errors when running the tests scripts from
> DokuWiki (darcs revision)? I don't have the runkit installed so one
> error is ok, but do others observe the same remaining two ones?
>
> Fail: ./cases/inc/parser/xhtml_links.test.php -> xhtml_links_test ->
> test_emaillink -> Equal expectation fails at character 138
Good catch. The test case is wrong. We use ENT_QUOTES to escape
entities, so single quotes should be encoded. I fixed the test case.
> Fail: ./cases/inc/html_hilight.test.php -> Bad TestSuite
> [./cases/inc/html_hilight.test.php] with error [Skipping
> html_hilight_test - http://www.php.net/runkit required]
You need the PHP extension called runkit, available at the above URL to
run this test. runkit is needed to replace previously defined functions
by dummy ones. With runkit installed this test passes for me.
> Fail: ./cases/inc/pageutils_resolve_pageid.test.php ->
> init_resolve_pageid_test -> test1 -> Equal expectation fails at
> character 11 with [playground:start] and [playground:playground] at
>
> [/usr/local/www/apache22/data/dokuwiki/_test/cases/inc/pageutils_resolve_pageid.test.php
> line 58]
This one only fails if a playground:start page exists which has
precedence over playground:playground. This isn't very good, an ideal
test case should be indepenedent of the data files...
Thanks for having a look at the tests. I'd like to get those test cases
much more used. Maybe we can get rid of the SimpleTest dependency, as I
feel we do not use half of it's features but its another barrier for
new developers....
Andi
--
http://www.splitbrain.org
|

|