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

Utility analysis ignore the "no tests" warning #125

Merged
merged 3 commits into from
Feb 18, 2025

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