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

[TASK] Add coverage configuration for functional tests #1092

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

oliverklee
Copy link
Contributor

We already had this for unit tests, but it was missing for functional tests.

@oliverklee oliverklee added this to the 3.1.0: New features milestone Dec 19, 2023
@oliverklee oliverklee self-assigned this Dec 19, 2023
<!--
This path needs an adaption in extensions, when coverage statistics are wanted.
-->
<directory>../../../../../../typo3/sysext/*/Classes/</directory>
Copy link
Contributor

@DanielSiepmann DanielSiepmann Dec 20, 2023

Choose a reason for hiding this comment

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

I see wee have the same path for unit tests.
Maybe I don't understand how this works, but I would expect we need to define the Classes folder of EXT:tea instead of foreign code. Maybe the comment above indicates this was copied from TYPO3 core and was not adjusted for EXT:tea and needs to be changed for unit tests as well?
Can you explain why we include the system extensions instead of our own Classes folder?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've done some more research: It turns out we don't need to provide any paths here - having an empty coverage node is enough to make PHPUnit happy with the configuration file.

We already had this for unit tests, but it was missing for
functional tests.

Also, we do not need to provide a path in this configuration - it
suffices to have this node present in the configuration files.

Closes #1078
@lukaszuznanski lukaszuznanski merged commit 0ff0f83 into main Jan 2, 2024
51 checks passed
@lukaszuznanski lukaszuznanski deleted the task/coverage-config branch January 2, 2024 21:34
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.

3 participants