-
Notifications
You must be signed in to change notification settings - Fork 14
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
Mutalk handles parametrized tests correctly #95
Mutalk handles parametrized tests correctly #95
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! 🚀
I left some questions and minor comments.
I have doubts about the use of the selector:
method... It feels like a query method that have effect => bad method.
Just to take care.
MTTestCaseReference >> method [ | ||
^ class >> selector | ||
|
||
^ testCase class >> testCase selector | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe would be nice to have in the test case, and do testCase method
or testCase methodTest
or similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree but it means changing the TestCase class, which is a different thing.
For now I guess this solution is fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea, maybe it's worth to do a PR to Pharo? @DurieuxPol ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we can do that
Thanks @DurieuxPol and @PalumboN for the review! |
Fixes #88
Now
MTAnalysis
retrieves correctly all tests cases from parametrized tests.I also refactored a bit
MTTestCaseReference
so that it now has the test case as instance variable rather than the class and the selector.