Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Exclude Tests from being scanned #91

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

Merged
merged 1 commit into from
Jun 2, 2017
Merged

Exclude Tests from being scanned #91

merged 1 commit into from
Jun 2, 2017

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Jun 2, 2017

Q A
License MIT

Even if the best practice is to store tests under tests/, some might still want to store them under src/Tests in which case, we want to exclude them for several reasons: first, no service should be defined there, so no need to scan the directory. But, more important, if PHPUnit is only install as a dev dependency, scanning on production will fail as the PHPUnit classes won't be available. This PR fixes this.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍

javiereguiluz
javiereguiluz previously approved these changes Jun 2, 2017
Copy link
Member

@xabbuh xabbuh left a comment

Choose a reason for hiding this comment

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

We should probably do the same for the Standard Edition.

@fabpot fabpot dismissed javiereguiluz’s stale review June 2, 2017 21:23

just a test :)

@symfony-bot symfony-bot merged commit 5eacde0 into master Jun 2, 2017
@fabpot fabpot deleted the tests-exclude branch June 2, 2017 21:25
fabpot added a commit to symfony/symfony-standard that referenced this pull request Jun 3, 2017
This PR was merged into the 3.3 branch.

Discussion
----------

exclude the Tests namespace

see symfony/recipes#91

Commits
-------

8bcfad7 exclude the Tests namespace
VolCh pushed a commit to VolCh/recipes that referenced this pull request Nov 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants