Skip to content

Exclude tests/test-sample.php via the phpunit.xml.dist file#134

Merged
danielbachhuber merged 3 commits intowp-cli:masterfrom
stevegrunwell:feature/skip-sample-test-in-phpunit-config
Apr 10, 2018
Merged

Exclude tests/test-sample.php via the phpunit.xml.dist file#134
danielbachhuber merged 3 commits intowp-cli:masterfrom
stevegrunwell:feature/skip-sample-test-in-phpunit-config

Conversation

@stevegrunwell
Copy link
Copy Markdown
Contributor

This commit adds ./tests/test-sample.php as an exclusion in the phpunit.xml.dist file, preventing it from executing by default when developers run PHPUnit.

Keeping the sample file can be helpful for projects (for instance, if the project is using a custom base test case and/or namespaces), but constantly asserting that true is, in fact, true isn't helpful.

This commit adds ./tests/test-sample.php as an exclusion in the phpunit.xml.dist file, preventing it from executing by default when developers run PHPUnit.

Keeping the sample file can be helpful for projects (for instance, if the project is using a custom base test case and/or namespaces), but constantly asserting that true is, in fact, true isn't helpful.
… a more complicated process than it seemed, so skip that for now (since the change is already reflected in the theme scaffold tests)
@stevegrunwell
Copy link
Copy Markdown
Contributor Author

Failing tests are due to PHP 5.3 running out of memory, which is addressed in #136.

@danielbachhuber danielbachhuber added this to the 1.1.3 milestone Apr 10, 2018
@danielbachhuber danielbachhuber added command:scaffold Related to 'scaffold' command command:scaffold-plugin Related to 'scaffold plugin' command labels Apr 10, 2018
@danielbachhuber danielbachhuber merged commit c4346a2 into wp-cli:master Apr 10, 2018
@stevegrunwell stevegrunwell deleted the feature/skip-sample-test-in-phpunit-config branch April 10, 2018 15:13
danielbachhuber added a commit that referenced this pull request Nov 18, 2022
…n-phpunit-config

Exclude tests/test-sample.php via the phpunit.xml.dist file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:scaffold Related to 'scaffold' command command:scaffold-plugin Related to 'scaffold plugin' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants