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
Fixes#2051
Requires #2055
Enchanted by #2062
## Changes
* Add test targets argument for filtering test cases.
* Add filtering option to Apk.ParseTestCases.
* Log AndroidTestPlan.Config on ExecuteTests start.
* Refactor `:tool:apk` module
## Test Plan
> How do we know the code works?
build flank
```shell
. .env
flankScripts assemble flank -d
```
and run
```shell
flank corellium test android run -c="./test_configs/flank-corellium.yml"
```
using configuration
```yml
auth: "test_configs/corellium_auth.yml"
apks:
- path: "test_artifacts/master/apk/app-debug.apk"
tests:
- path: "test_artifacts/master/apk/app-multiple-flaky-debug-androidTest.apk"
test-targets:
- "package com.example.test_app.parametrized"
- "notClass com.example.test_app.parametrized.EspressoParametrizedClassTestParameterized"
- "package com.example.test_app.foo"
- "class com.example.test_app.InstrumentedTest#test0"
max-test-shards: 3
```
As a results Flank should execute only test cases restricted by test targets.
## Checklist
- [x] Documented
- [x] Unit tested
- [x] Integrated with a filtering tool
Author the user story for this feature
As an Android Engineer, I want to filter the tests that run so I can compare FTL to Corellium.
Describe the solution
Implement the test targets feature for the corellium backend. This is a blocker for going to production.
Describe alternatives considered
Not implementing this feature.
The text was updated successfully, but these errors were encountered: