Refactor unit tests to use PHPUnit and improve coverage#1374
Open
herbertroth wants to merge 6 commits into1.xfrom
Open
Refactor unit tests to use PHPUnit and improve coverage#1374herbertroth wants to merge 6 commits into1.xfrom
herbertroth wants to merge 6 commits into1.xfrom
Conversation
- Updated test classes to extend PHPUnit\Framework\TestCase instead of Codeception\Test\Unit. - Replaced Codeception's makeEmpty method with PHPUnit's createMock for creating mock objects. - Added @Covers annotations to improve documentation and coverage reporting for specific methods in the tests. - Removed the old bootstrap file and replaced it with a new one that sets up the environment for PHPUnit. - Introduced a GitHub Actions workflow for running PHPUnit tests with coverage reporting.
…usage - Updated multiple test classes to replace the deprecated @Covers annotation with #[CoversClass] and #[UsesClass] attributes. - Removed redundant comments related to coverage annotations. - Added a new devcontainer configuration for the Studio Backend Bundle, including necessary extensions and settings for a better development experience.
- Upgrade PHPUnit version to ^12 in composer.json - Add PHPUnit and PHP IntelliSense extensions to devcontainer.json - Enhance README.md with detailed PHPUnit usage instructions - Introduce phpunit-no-coverage.xml for faster test execution - Create phpunit.xml for comprehensive test coverage reporting - Refactor test classes to use PHPUnit attributes for coverage
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Transitioned unit tests from Codeception to PHPUnit, enhancing test coverage and documentation. Updated test classes to utilize PHPUnit attributes for better organization and clarity. Introduced a GitHub Actions workflow for automated testing with coverage reporting. Updated the development environment configuration for improved developer experience.