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

Adds a project-specific phpunit.xml file. #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jhedstrom
Copy link
Member

This still needs work, as I'm forgetting how/when db credentials are available. We need to properly populate this bit of the file:

    <!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix -->
    <env name="SIMPLETEST_DB" value=""/>

<!-- Example SIMPLETEST_BASE_URL value: http://localhost -->
<env name="SIMPLETEST_BASE_URL" value="http://project.vm"/>
<!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix -->
<env name="SIMPLETEST_DB" value=""/>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Environment variables override these, so if we were to set those in one of the rig generators, that would work. This would still be nice to have set, but could be an @todo for the time being. Having this file in the project root would at least make configuration of testing clearer for devs I think.

@grayside
Copy link
Contributor

This seems like a decent plan, I'd like to test this out and coordinate with generator-outrigger-drupal before merging.

There should also be test coverage to at least confirm generation of the phpunit.xml.dist file on generator runs.

Copy link
Contributor

@grayside grayside left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing test coverage.

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

Successfully merging this pull request may close these issues.

Add a project-specific phpunit.xml file
2 participants