What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi! Has anyone tipps/tools for generating a good code coverage report for a spryker shop? We tried u
Hi! Has anyone tipps/tools for generating a good code coverage report for a spryker shop?
We tried using the codeception coverage with pcov but it seems to ignore configured excludes/filenames. What is the best way to go?
Comments
-
The following excludes all Spryker stuff we don’t want to cover (Facades, Factories, etc.).
This is working fine for us with pcov.coverage: enabled: true remote: false include: - 'src/Pyz/Zed/*.php' exclude: - 'src/Pyz/Zed/*/Business/*Facade.php' - 'src/Pyz/Zed/*/Business/*FacadeInterface.php' - 'src/Pyz/Zed/*/Business/*BusinessFactory.php' - 'src/Pyz/Zed/*/Communication/*CommunicationFactory.php' - 'src/Pyz/Zed/*/Persistence/*PersistenceFactory.php' - 'src/Pyz/Zed/*/Persistence/*QueryContainer.php' - 'src/Pyz/Zed/*/Persistence/*EntityManager.php' - 'src/Pyz/Zed/*/Persistence/*Repository.php' - 'src/Pyz/Zed/*DependencyProvider.php' - 'src/Pyz/Zed/*Config.php'
0 -
This is only for unittests, for Glue API tests I experimented with the remote code coverage, but weren’t able to generate a code coverage
0 -
Thanks @UL6DGRULR. Did you need to set any pcov.exclude values in your dockerfile?
0 -
No, we have only configured Codeception for the code coverage. It would be more efficient to configure pcov.exclude as well, but as the coverage generation is fast enough for us we didn’t looked into it
0 -
and another question: are you running php-unit 8?
0 -
We run php-unit 8.5
0 -
Thanks a lot!
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random