-
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
General result shows filtered tests #84
General result shows filtered tests #84
Conversation
Great! There is |
7bde5b6
to
e6e1ba6
Compare
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.
Thanks @DurieuxPol ! Could you do the renames? then for the big comment we can discuss tomorrow :)
src/MuTalk-Model/MTAnalysis.class.st
Outdated
into: [ :accumulator :test | | ||
accumulator add: | ||
test -> testFilter filteredTestReason. | ||
accumulator ] |
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.
Hmm this method is strange :).
- First, this inject:into: could be replaced by a
collect:
(a simplemap
) no? - Second, the objective of this method is to store the tests + reason, right?
I have one question here. All filtered tests have the same reason right now, right? I wonder why the test filter does not return the "tuple" already instead of creating it in here... It's the filter that decides to filter, then it could be the filter that attaches this to the test :)
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.
You're right, I refactored the test filters in this direction
src/MuTalk-Model/MTAnalysis.class.st
Outdated
@@ -536,6 +563,7 @@ MTAnalysis >> generateResults [ | |||
| tests | | |||
mutantResults := OrderedCollection new. | |||
tests := testFilter filterTests: testCases. | |||
self filteredTestsFrom: (testCases copyWithoutAll: tests). |
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.
May I propose to rename tests
into filteredTests
? :)
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.
Indeed !
arg1 , ' ' , arg2 ]. | ||
|
||
reasonString , pragmaString , '>' ] | ||
] |
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.
This method is weird... why is it attaching >
at the end of the string?
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.
Because reasonString
is the start of the string, and it contains <
.
It's because I wanted the pragma to be between <>, like this <pragma>
…filtered tests" to "excluded tests" to match test filters instance variables
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.
Thanks @DurieuxPol !
Also shows the reason and the code of the selected test.