You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect that all tests would run, except for those in the foo package and the class whatever.Bar. This is the behavior when those arguments are passed to AndroidJUnitTestRunner. But it seems that tests that match any of the filters are included in the run, so all tests are actually included in the run.
Any way the second case works well. But
the first one fails because allOf [anyOf [not withPackageName foo, not withClassName whatever.Bar]] for foo.ClassName#testName or whatever.Bar#testName gives true, because anyOf(false, true) gives true. So we cannot wrap two or more exclusions into anyOf.
I have an idea how to fix that, we need to separate includes and excludes filters, only the first one can be wrapped into anyOf. The pull request will coming soon.
When using this config:
I would expect that all tests would run, except for those in the
foo
package and the classwhatever.Bar
. This is the behavior when those arguments are passed toAndroidJUnitTestRunner
. But it seems that tests that match any of the filters are included in the run, so all tests are actually included in the run.Using
notTestFile
is a workaround:These tests for
TestFiltersTest.kt
highlight the discrepancy:The text was updated successfully, but these errors were encountered: