Replies: 5 comments
|
Are you referring to this style of tests? https://developer.android.com/training/testing/unit-testing/instrumented-unit-tests#test-suites If so that would make sense because we are collecting tests based on annotated methods in classes. It could be possible to try and parse the annotation on the class and determine what other tests to run. Gordon was built with the idea of running tests based on packages where each package is a feature / domain. Alternatively Gordon's filtering supports comma separated classes as well to create a similar test run. If that isn't what you're referring to could you elaborate and maybe add example test classes / functions and the command you're running? |
|
I have suite in package com.brand.subdomain.suite
These test classes My gradle command is :app:gordonBrand as I wrote in first message, in gradle config Also at this time usual gradle command (not gordon) |
|
@kostya29 this might be something we can add support for at some point. In the meantime, you could always just set your test filter to |
|
@joshschriever When I use "LoginTest,RespondentTest,AlarmTest,CorridorTest,RoomTest,CameraCareTest,CommandButtonsTest,BrandTest,UtilsTest" gordon runs these tests in another order then in this string, there is not way to point out order of execution tests for gordon |
|
Running tests in a particular order is something I don't think we'll support in any case. If your tests only work when run in a particular order, I would recommend finding a way to decouple them. For example, my company has a suite of UI tests where clearing shared preferences in-between tests decouples them, so we use a simple custom test application, in which we override |
Uh oh!
There was an error while loading. Please reload this page.
When I have testFilter with value testFilter = "my.package.TestSuite" and run job :app:gordonBrand
I got
Execution failed for task ':app:gordonBrand'.
All reactions