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

Moved builder pattern to analysis class, and refactored how test classes are managed at instanciation #62

Merged
merged 3 commits into from
Jan 11, 2024

Conversation

DurieuxPol
Copy link
Collaborator

Fixes #59, fixes #61
Put builder pattern in the MutationTestingAnalysis class and removed MutationTestingAnalysisBuilder class.
Also changed testCasesFrom: method so that classes that are not test classes and are given as test classes when creating an analysis are not ignored. The method let them in, but the analysis eventually crashes with a DNU message.

Durieux Pol added 2 commits January 10, 2024 17:01
@coveralls
Copy link

coveralls commented Jan 10, 2024

Pull Request Test Coverage Report for Build 7486755453

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.5%) to 58.337%

Totals Coverage Status
Change from base Build 7458288676: -0.5%
Covered Lines: 3859
Relevant Lines: 6615

💛 - Coveralls

{ #category : 'initialize-release' }
MutationTestingAnalysis >> initializeFor: someTestCasesReferences mutating: someModelClasses using: operatorCollection with: aTestSelectionStrategy with: aMutantSelectionStrategy loggingIn: aLogger budget: aBudget [
{ #category : 'initialization' }
MutationTestingAnalysis >> initialize [
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks very nice :)

@@ -590,24 +656,48 @@ MutationTestingAnalysis >> stopOnErrorOrFail: aBoolean [
stopOnErrorOrFail := aBoolean
]

{ #category : 'accesing' }
{ #category : 'accessing' }
Copy link
Contributor

Choose a reason for hiding this comment

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

haha even noticing typos in the protocols!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I must admit, the warnings before committing helped me a bit ahah

Copy link
Contributor

@guillep guillep left a comment

Choose a reason for hiding this comment

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

It was already good, but now it's much better!!

@guillep guillep merged commit fc547f8 into pharo-contributions:master Jan 11, 2024
3 checks passed
@DurieuxPol DurieuxPol deleted the fix/5961 branch February 5, 2024 10:16
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.

Separate class for builder pattern Classes that are not test classes are ignored
3 participants