Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing instructions to help collaborators to run tests #28

Open
sensorario opened this issue Oct 18, 2017 · 2 comments
Open

Missing instructions to help collaborators to run tests #28

sensorario opened this issue Oct 18, 2017 · 2 comments

Comments

@sensorario
Copy link
Collaborator

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:
@francescobianco
Copy link
Member

@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

@sensorario
Copy link
Collaborator Author

sensorario commented Oct 19, 2017

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>

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

No branches or pull requests

2 participants