javanile/moldable

Missing instructions to help collaborators to run tests

sensorario opened this issue · 2 comments

How can I fix this?

$ ./vendor/bin/phpunit
PHPUnit 5.7.23 by Sebastian Bergmann and contributors.

EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE.F.EEEEEEEEEEEEEEEEE 65 / 97 ( 67%)
EEEEEEEEEEEEEEEEEEEEEEEEEE......                                  97 / 97 (100%)

Time: 422 ms, Memory: 8.00MB

There were 88 errors:

@sensorario Now we found instructions into README.md at link
https://github.com/javanile/moldable/blob/master/README.md#setup-for-testing
I always say thank you for your support

Database must be created by hand. But still dont work. Some steps are missing

$ ./vendor/bin/phpunit
PHPUnit 5.7.23 by Sebastian Bergmann and contributors.

..................................E..EEEEEE.E.F.

test suit is blocked for me. Now I can stop execution but if I try to re-run tests, ... I still receive the error that database not exists.

I mean:

PDOException: SQLSTATE[HY000] [1049] Unknown database 'db' with current configuration:

<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true">
    <php>
        <var name="DB_HOST" value="localhost" />
        <var name="DB_PORT" value="3306" />
        <var name="DB_NAME" value="db" />
        <var name="DB_USER" value="root" />
        <var name="DB_PASS" value="root" />
    </php>
    <filter>
        <whitelist>
            <directory>./src</directory>
        </whitelist>
    </filter>
    <testsuites>
        <testsuite name="Application Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
</phpunit>