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
Add --filter flag #138
Add --filter flag #138
Conversation
f900fbc
to
e73d4dd
Compare
Code Climate has analyzed commit e73d4dd and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 89.4% (50% is the threshold). This pull request will bring the total coverage in the repository to 91.7% (0.0% change). View more on Code Climate. |
@dylanhitt would you like to do a review? |
Sure, I'll get to it by the end of Tuesday. |
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.
Some requests, and I'm sure you planned on getting to it.
- Some integration tests
- So for now we're we'd be panicing if no
filter
was found in a directory. I like the idea of info/warning there. However, the goroutine makes this rough to deal with :( I think the Move test execution to runner file, refactor output #126 would make handling this warning much easier as well... yet again. - I see you marked you added docs. Do you plan on updating the README?
I like the feature. I'm neither here nor there about wildcard support. I like this much. more than just passing a string at the end of test command 👍
@@ -29,6 +29,8 @@ const ( | |||
Skipped | |||
) | |||
|
|||
type Filters []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.
Small point. Would this be better in suite.go
?
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 is really my only point. Is there a reason why you chose to place this here?
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 placed it in runtime
because the filtering logic should be inside the runtime in the future.
The suite would be the wrong place because the filters are not defined in the suite, instead filters are only provided viá the command line.
|
e73d4dd
to
6ae857d
Compare
Ready for review :)
|
@@ -29,6 +29,8 @@ const ( | |||
Skipped | |||
) | |||
|
|||
type Filters []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.
This is really my only point. Is there a reason why you chose to place this here?
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.
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.
- Using
StringSliceFlag
for filter flag now. - Need more explanation on the
TextContext
, could not follow along with it
I am confused with github code reviews, sometimes I can comment on requests, sometimes not. |
I agree for some reason I can only add comments to my original comments. Also I cleared up what I meant about |
Code Climate has analyzed commit cb91de1 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 88.8% (50% is the threshold). This pull request will bring the total coverage in the repository to 92.2% (-0.2% change). View more on Code Climate. |
Fixes #137 #77
Checklist
Linux
,Windows
andmacOS
?