Skip to content

Conversation

chr-hertel
Copy link
Member

Q A
Bug fix? no
New feature? no
Docs? no
Issues
License MIT

We're not using it, and Symfony usually also skips those information. And coverage is outdated and nearly impossible to review.

@chr-hertel chr-hertel requested a review from Nyholm as a code owner September 22, 2025 21:49
@chr-hertel chr-hertel added the Platform Issues & PRs about the AI Platform component label Sep 22, 2025
@chr-hertel chr-hertel added Agent Issues & PRs about the AI Agent component Store Issues & PRs about the AI Store component AI Bundle Issues & PRs about the AI integration bundle Demo Issues & PRs about the demo application labels Sep 22, 2025
@carsonbot carsonbot changed the title [Agent][AI Bundle][Demo][Platform][Store] Remove Test Coverage Attributes [AI Bundle][Agent][Demo][Platform][Store] Remove Test Coverage Attributes Sep 22, 2025
@OskarStark
Copy link
Contributor

demo CI is failing

@chr-hertel chr-hertel force-pushed the remove-test-coverage-attributes branch from d0b0b69 to 3421070 Compare September 23, 2025 19:42
@chr-hertel chr-hertel merged commit 7c27199 into main Sep 23, 2025
27 checks passed
@chr-hertel chr-hertel deleted the remove-test-coverage-attributes branch September 23, 2025 19:51
OskarStark added a commit that referenced this pull request Sep 24, 2025
…arStark)

This PR was squashed before being merged into the main branch.

Discussion
----------

[PHPStan] Add rule to forbid test coverage attributes

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| Docs?         | no
| Issues        | Follows #647
| License       | MIT

This rule prevents the use of Large, Small, Medium, CoversClass and UsesClass attributes in test files, helping maintain consistency in the test codebase by avoiding these coverage-related attributes.

The rule operates only on files ending with 'Test.php' and provides clear error messages with tips for resolving violations.

### Proof
<img width="1602" height="1292" alt="CleanShot 2025-09-24 at 07 18 01@2x" src="https://github.com/user-attachments/assets/0f60461f-c429-4bf3-a364-c051e6f1b686" />

Commits
-------

b8f4abe [PHPStan] Add rule to forbid test coverage attributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Agent Issues & PRs about the AI Agent component AI Bundle Issues & PRs about the AI integration bundle Demo Issues & PRs about the demo application Platform Issues & PRs about the AI Platform component Status: Reviewed Store Issues & PRs about the AI Store component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants