Skip to content
This repository was archived by the owner on Apr 3, 2026. It is now read-only.
This repository was archived by the owner on Apr 3, 2026. It is now read-only.

How to use with CI Unit? #41

Description

@mike131

I would like to use grunt-phpunit with CI Unit (https://github.com/Celc/CIUnit)

I'm not quite sure how to set it up and was wondering if you had pointers?

There is a phpunit.xml.dist file that seems to control which tests are run.

<?xml version="1.0" encoding="UTF-8"?>

<phpunit colors="true"
         stopOnFailure="false"
         bootstrap="../vendor/Celc/ciunit/src/bootstrap_phpunit.php">
    <php>
        <server name="SERVER_NAME" value="http://example.com"/>
    </php>
    <testsuites>
        <testsuite name="ControllerTests">
            <directory>controllers</directory>
        </testsuite>
        <!-- <testsuite name="HelperTests">
            <directory suffix=".php">helpers</directory>
        </testsuite>
        <testsuite name="LibTests">
            <directory suffix=".php">libs</directory>
        </testsuite>
        <testsuite name="ModelTests">
            <directory suffix=".php">models</directory>
        </testsuite>
        <testsuite name="SystemTests">
            <directory suffix=".php">system</directory>
        </testsuite> -->
    </testsuites>
</phpunit>

I can run the tests without grunt using /vendor/phpunit/phpunit/phpunit

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions