Add generic SelectTest JUnit filter and CoreTestsFilter
The JUnit filter com.android.test.filters.SelectTest is a generic test filter that can supersede |-e package| and |-e class| options of AndroidJUnitRunner. The com.android.server.wm.test.filters.CoreTestsFilter extends SelectTest filter to filter out Window Manager Service releated tests in FrameworksCoreTests. Bug: 122451194 Test: Can select some tests from WmTests. $ adb shell am instrument -w \ -e filter com.android.test.filters.SelectTest \ -e selectTest com.android.test.filters.,com.android.server.wm.DockedStackDividerControllerTests \ com.android.frameworks.wmtests/androidx.test.runner.AndroidJUnitRunner Test: CoreTestsFilter works for FrameworksCoreTests. $ adb shell am instrument -w \ -e filter com.android.server.wm.test.filters.CoreTestsFilter \ -e selectTest_verbose true \ com.android.frameworks.coretests/androidx.test.runner.AndroidJUnitRunner Change-Id: Ic72637997bf17debef914e2596049f6cf3e753de
Loading
Please register or sign in to comment