Skip to content

Add tests to kill escaped mutants (#529)#545

Open
dbuhonov wants to merge 80 commits intoyiisoft:masterfrom
dbuhonov:feature/529-mutant-part-1
Open

Add tests to kill escaped mutants (#529)#545
dbuhonov wants to merge 80 commits intoyiisoft:masterfrom
dbuhonov:feature/529-mutant-part-1

Conversation

@dbuhonov
Copy link
Copy Markdown

@dbuhonov dbuhonov commented Mar 13, 2026

Q A
Is bugfix?
New feature?
Breaks BC?
Fixed issues part of #529

Covered Code MSI: 98%

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.63%. Comparing base (376c1d2) to head (a2d0184).

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #545      +/-   ##
============================================
- Coverage     99.69%   99.63%   -0.07%     
  Complexity      663      663              
============================================
  Files            43       43              
  Lines          1646     1622      -24     
============================================
- Hits           1641     1616      -25     
- Misses            5        6       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dbuhonov dbuhonov force-pushed the feature/529-mutant-part-1 branch from ec926d0 to 27f1743 Compare March 13, 2026 09:09
dbuhonov added 27 commits March 13, 2026 13:41
Comment thread src/Event/Handler/SoftDelete.php
Copy link
Copy Markdown
Member

@Tigrov Tigrov left a comment

Choose a reason for hiding this comment

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

Could you merge changes from master?

@dbuhonov
Copy link
Copy Markdown
Author

dbuhonov commented May 6, 2026

Could you merge changes from master?

Yes, I just resolve conflicts)

dbuhonov added 3 commits May 6, 2026 16:13
…t-part-1

# Conflicts:
#	tests/ActiveQueryTest.php
#	tests/ActiveRecordTest.php
#	tests/EventsTraitTest.php
…te test `testJoinWithViaTableDoesNotDuplicateChildWhere`.
@dbuhonov
Copy link
Copy Markdown
Author

dbuhonov commented May 6, 2026

@Tigrov Fixed the conflict. The checks that failed are not my fault.

@dbuhonov dbuhonov requested a review from vjik May 6, 2026 12:37
Copy link
Copy Markdown
Member

@vjik vjik left a comment

Choose a reason for hiding this comment

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

Run cs-fixer and rector locally:

./vendor/bin/rector
./vendor/bin/php-cs-fixer fix

Comment thread tests/ActiveQueryTest.php Outdated
public function testRemoveDuplicatedRowsChecksPrimaryKeyPresenceInFirstRow(): void
{
$query = Customer::query();
$method = new ReflectionMethod(ActiveQuery::class, 'removeDuplicatedRows');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we test it without reflection usage?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

@dbuhonov dbuhonov requested a review from vjik May 7, 2026 19:08
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.

4 participants