-
Notifications
You must be signed in to change notification settings - Fork 119
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
--test-targets param #394
--test-targets param #394
Conversation
@Test | ||
fun testTargets_parse() { | ||
val cmd = AndroidRunCommand() | ||
CommandLine(cmd).parse("--test-targets", "class com.foo.Clazz", "--test-targets", "package com.my.package") |
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.
probably better to extract "class com.foo.Clazz", "--test-targets", "package com.my.package"
to a variable.
I think you can make them a list and then destructure with *.
val expectedTargets = listOf("class com.foo.Clazz", "--test-targets", "package com.my.package")
...
@Test | ||
fun androidArgs_overrideTestTargetsFromCmdLine() { | ||
val cli = AndroidRunCommand() | ||
CommandLine(cli).parse("--test-targets", "class com.foo.ClassName") |
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.
extract "class com.foo.ClassName"
to a variable
Codecov Report
@@ Coverage Diff @@
## master #394 +/- ##
============================================
+ Coverage 79.93% 79.94% +0.01%
- Complexity 479 480 +1
============================================
Files 66 66
Lines 1550 1551 +1
Branches 234 234
============================================
+ Hits 1239 1240 +1
Misses 173 173
Partials 138 138 |
#365