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

chore: add a wrapper for PHPUnit binary #683

Merged
merged 1 commit into from
Aug 18, 2024

Conversation

nikophil
Copy link
Member

@nikophil nikophil commented Aug 7, 2024

I think if we introduce a PHPUnit extension (see #648), it will be harder to test all permutations locally, and to mix dama, the new extension, phpunit version...

Here is a proposal of a wrapper for PHPUnit, which will add the right PHPUnit extension, and automatically upgrade to the right version, based on environment variables:

  • PHPUNIT_VERSION
  • USE_DAMA_DOCTRINE_TEST_BUNDLE
  • USE_FOUNDRY_PHPUNIT_EXTENSION (soon to come)

then, in order to run the test, we just have to run ./phpunit, it will forward to PHPUnit all options or arguments

Would you accept this? I'll add some docs in the readme about this as well

@nikophil nikophil force-pushed the chore/phpunit-wrapper branch from 8127e28 to f8e845f Compare August 7, 2024 20:25
@nikophil nikophil requested a review from kbond August 7, 2024 20:26
@nikophil nikophil force-pushed the chore/phpunit-wrapper branch 13 times, most recently from 956b09c to b04a0d6 Compare August 8, 2024 10:26
@nikophil nikophil marked this pull request as ready for review August 8, 2024 10:26
@nikophil nikophil force-pushed the chore/phpunit-wrapper branch from b04a0d6 to 6127d86 Compare August 8, 2024 16:20
Copy link
Member

@kbond kbond left a comment

Choose a reason for hiding this comment

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

I like this - especially how it simplifies the CI.

.github/workflows/ci.yml Show resolved Hide resolved
@nikophil nikophil merged commit 33595b9 into zenstruck:2.x Aug 18, 2024
30 checks passed
@nikophil nikophil deleted the chore/phpunit-wrapper branch August 18, 2024 14:00
@smnandre
Copy link
Contributor

Hi @nikophil

Do you plan to release / document this for everyone or is it "just" an internal tool ?

@nikophil
Copy link
Member Author

nikophil commented Sep 1, 2024

Hi @smnandre

I'm not sure to understand your question 😅

It is indeed a very internal tool for Foundry development, which does not aim to be shipped (this makes me think that I've forgotten to add it to .gitattributes).
What would you use it for?

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

Successfully merging this pull request may close these issues.

3 participants