EXCEPTION: Invalid TAP string, ..

107 views
Skip to first unread message

Joeri

unread,
Jul 14, 2014, 7:43:57 AM7/14/14
to php...@googlegroups.com
I'm rolling out my first project build on phpci, altough after phpunit I get the following errors:

[2014-07-14 13:31:15] RunCommand.ERROR: EXCEPTION: Invalid TAP string, number of tests does not match specified test count. {"exception":"[object] (Exception: Invalid TAP string, number of tests does not match specified test count. at /var/www/phpci/PHPCI/Plugin/Util/TapParser.php:68)","buildID":"9"} []
[2014-07-14 13:31:15] RunCommand.ERROR: PLUGIN STATUS: FAILED {"buildID":"9"} []
[2014-07-14 13:31:15] RunCommand.ERROR: BUILD FAILURE {"buildID":"9"} []

My yml file:

 
build_settings:
    clone_depth: 1 # depth of 1 is a shallow clone, remove this line to clone entire repo
    ignore:
        - "vendor"
        - "tests"
    mysql:
        host: "localhost"
        user: "test"
        pass: "test"

setup:
    composer:
        action: "install"
   
test:
    php_unit:
        config:
           - "app/phpunit.xml"

Steve Brazier

unread,
Jul 14, 2014, 8:08:10 AM7/14/14
to Joeri, php...@googlegroups.com
This certainly looks like it might be a problem with our tap parser. The last comment in this thread might be related:


Can you do a build in verbose output mode and send us the output. It might shed a bit more light on what's going wrong:

build_settings:
  verbose: true
~ Steve


--
You received this message because you are subscribed to the Google Groups "PHP CI" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-ci+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dan Cryer

unread,
Jul 14, 2014, 8:56:58 AM7/14/14
to Steve Brazier, Joeri, php...@googlegroups.com
Joeri 

Please can you also try running the following for me from your project directory:

phpunit --tap -c /path/to/your/phpunit.xml


It would be really useful to see what PHPUnit is actually outputting, so that I can fix the TAP parser.

Thanks

Dan


Reply all
Reply to author
Forward
0 new messages