Skip to content

Utility analysis ignore the "no tests" warning#125

Merged
guillep merged 3 commits intopharo-contributions:masterfrom
DurieuxPol:fix/123
Feb 18, 2025
Merged

Utility analysis ignore the "no tests" warning#125
guillep merged 3 commits intopharo-contributions:masterfrom
DurieuxPol:fix/123

Conversation

@DurieuxPol
Copy link
Collaborator

Fixes #123
Those analysis don't use tests, so the warning should not interrupt them.
The current solution is certainly not perfect, so I'm open to better implementation idea.

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.

hi Pol! this is a very good idea!

I was thinking, what if, instead of ignoring the warning on the caller we have a setting on the MTAnalysis class?

Personally, I don't like this warning :)
So, we could have a setting warnAboutEmptyAnalysis that could be true by default (to keep compat), and, if true it raises the warning (and not if false).

What do you think?

@DurieuxPol
Copy link
Collaborator Author

I think this is a better approach to the problem for sure !
I'll do this for the moment, and maybe we can discuss about keeping the warning or not later

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.

Cool! Thanks!

@guillep guillep merged commit 4ff5604 into pharo-contributions:master Feb 18, 2025
3 of 4 checks passed
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.

MTNonMutatedMethodAnalysis raises "no tests" warning

2 participants