Skip to content

Conversation

@lippserd
Copy link
Member

@lippserd lippserd commented Nov 6, 2025

This is preparation for a GitHub action to streamline tests, which

  • expects the phpunit.xml configuration at the root level, and
  • installs dependencies via composer.

Proof that the same number of tests are run after moving the configuration file:

Rationale for introducing composer:

GitHub Actions for this repository and any other module that requires Mockery must specify this dependency themselves. Module tests require Icinga Web anyway, so all (development) dependencies and any changes to them should be automatically applied instead of having to adjust each individual module affected. If we eventually upload our library bundles to Packagist as well, we could also specify them in composer.json once instead of having to require them in every action.

This is preparation for a GitHub action to streamline tests, which expects the
`phpunit.xml` configuration at the root level.
@cla-bot cla-bot bot added the cla/signed label Nov 6, 2025
Also, we could require our PHP libraries as soon as we have uploaded them to
Packagist.
Else, tests with current PHPUnit versions fail with `Cannot override final
method PHPUnit\Framework\Assert::assertMatchesRegularExpression()`.
@lippserd lippserd marked this pull request as ready for review November 6, 2025 14:02
@lippserd lippserd requested a review from nilmerg November 6, 2025 14:02
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.

2 participants