Support missing android test types with './mach test'
Categories
(Testing :: General, task)
Tracking
(Not tracked)
People
(Reporter: tcampbell, Assigned: tcampbell)
References
(Depends on 1 open bug)
Details
Attachments
(4 files, 6 obsolete files)
Existing ./mach test <path-to-test> support is very limited for the Android test suites.
- *.java files are unsupported
- GeckoView unit-tests are unsupported
- Tests not in a 'test' packages are unsupported
- Fenix/Focus/AC androidTest tests are unsupported
Firstly, the ./mach android-test command needs to be enriched, then the ./mach test command can use it in more cases.
| Assignee | ||
Comment 1•3 months ago
|
||
This was old infrastructure from the Fennec RoboCop test
suites that are long gone.
| Assignee | ||
Comment 2•3 months ago
|
||
These are no longer connected to anything and the robocop tests
are long gone.
| Assignee | ||
Comment 3•3 months ago
|
||
Add some tests for the android-test command. This also fixes handling of .java
file extensions. Includes some minor refactoring to prepare for subsequent
changes.
| Assignee | ||
Comment 4•3 months ago
|
||
Add support for geckoview (unit) test suite to 'android-test' command. Note
that the 'geckoview-junit' command still exists and does similar things.
Cleanup how subprojects are handled and derive it automatically if a test path
is specified. Cleanup the gradle commands to separate gradle options from task
options and avoid duplicate or redundant tasks.
| Assignee | ||
Comment 5•3 months ago
|
||
The default gradle-variant we use for tests is 'Debug', but allow overriding
it on command line.
| Assignee | ||
Comment 6•3 months ago
|
||
Teach the './mach android-test' command to recognize and to run Android
instrumentation tests using the connectedAndroidTest family of Gradle tasks.
| Assignee | ||
Comment 7•3 months ago
|
||
- Add recognition of '.java' files.
- Use the 'android-test' command instead of 'geckoview-junit'
- Turn the 'junit' suite into an alias of 'geckoview'
- Support unit and android tests for geckoview. We were running the android
tests already, so also run the very small collection of unit tests. - Be explicit that other android suites currently run unit tests only.
| Assignee | ||
Comment 8•3 months ago
|
||
Updates the resolver logic to check the androidTest path as well. Instead of
requiring that tests use a test package name, just require the name ends in
Test.{kt,java}. Note that the existing presets (like 'fenix') still only run
local unit tests. If a path is given instead, a mix of tests can be run.
Comment 9•3 months ago
|
||
Comment on attachment 9541589 [details]
WIP: Bug 2013743 - Part 0.1: Remove ANDROID_INSTRUMENTATION_MANIFESTS support
Revision D281345 was moved to bug 2013802. Setting attachment 9541589 [details] to obsolete.
Comment 10•3 months ago
|
||
Comment on attachment 9541590 [details]
WIP: Bug 2013743 - Part 0.2: Remove RobocopTarget Annotations from GeckoView
Revision D281346 was moved to bug 2013802. Setting attachment 9541590 [details] to obsolete.
Comment 11•3 months ago
|
||
Comment on attachment 9541591 [details]
WIP: Bug 2013743 - Part 1.1: Add tests for './mach android-test'
Revision D281347 was moved to bug 2013803. Setting attachment 9541591 [details] to obsolete.
Comment 12•3 months ago
|
||
Comment on attachment 9541592 [details]
WIP: Bug 2013743 - Part 1.2: Add geckoview support to './mach android-test'
Revision D281348 was moved to bug 2013803. Setting attachment 9541592 [details] to obsolete.
Comment 13•3 months ago
|
||
Comment on attachment 9541593 [details]
WIP: Bug 2013743 - Part 1.3: Add --gradle-variant to './mach android-test'
Revision D281349 was moved to bug 2013803. Setting attachment 9541593 [details] to obsolete.
Comment 14•3 months ago
|
||
Comment on attachment 9541594 [details]
WIP: Bug 2013743 - Part 1.4: Add instrumented test support to './mach android-test'
Revision D281350 was moved to bug 2013803. Setting attachment 9541594 [details] to obsolete.
| Assignee | ||
Comment 15•3 months ago
|
||
Test suites use names ending with 'Test.kt', so rename some of the inconsistent
names to make it easier to distinguish tests from support code.
| Assignee | ||
Comment 16•3 months ago
|
||
Add some tests for the cases that currently work so they don't regress will
supporting new cases. Fix some minor defects in existing code while we are at it.
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Description
•