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

Add path to current test file for phpunit-current-test #45

Merged

Conversation

landakram
Copy link

@landakram landakram commented Feb 19, 2017

This change increases performance for phpunit-current-test.
Without the file path, the phpunit command relies solely on the
--filter flag to locate the test to run and takes ~3x longer
to start the test in a large PHP project.

Note: this changes the behavior of php-current-test in edge cases. When it cannot find a current test, it will now run the tests for the file, whereas before it would run all tests from the root directory.

This change increases performance for `phpunit-current-test`.
Without the file path, the phpunit command relies solely on the
`--filter` flag to locate the test to run and takes ~3x longer
to start the test in a large PHP project.
@landakram landakram changed the title Add path to current test file as part of phpunit command Add path to current test file for phpunit-current-test Feb 19, 2017
@zonuexe zonuexe changed the base branch from master to develop February 19, 2017 21:06
@nlamirault nlamirault merged commit f98c114 into nlamirault:develop Feb 20, 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.

None yet

2 participants