-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fladle plugin to automatically configure additional test apks #96
Comments
|
I'm going to implement this directly inside Flank soon, to avoid to read the dex files twice (both in Some considerations:
|
We discussed this in slack and we think the NxM strategy is not necessary because the app apk is not relevant for library apks. Thus one strategy for the implementation could be to submit them to flank like so: First app apk found If there are specific cases where this strategy would not work, please comment! |
Hi folks, this would be great for us (dropbox) only caveat is that we want to be able to pattern match exclusions. We have modules that I would not want to send (ie ones ending with generated) |
Ah, good point. @digitalbuddha . Currently flank supports test filtering using the |
If I understand correctly currently we need to list all test apks. We do this by collecting outputs and pattern matching to one's we don't want and output to a file. The current proposal is to auto include all apks. I'd like to propose similar to how the coverage gather works where you'd want to gather all apks that match a certain pattern. Something like: That would still give folks the ability to do /. * |
I see. What you need is pattern matching on the directory or name of the test apk? Does this filter need to be independent of the application apk list? |
Independent of the app apk to keep it less surprising. The goal is to not upload the apks at all rather than upload then filter. Some of our test apks are large and only expected to be run nightly. An additional bit of info is that I have more control over apk names than test names/packages (in a large code base) . No biggie but figured I'd ask. Thanks for all the hard work, either way it will remove custom code 😊 |
Yeah, this is great feedback and keep it coming. |
I think this feature will be a huge win for Robinhood. I've asked my team to prioritize collaborating to resolve this issue. I'm open to making changes in Flank to make this easier. 🙂 |
Thanks! I'll take a crack at this during the weekend. Also more information about your use case is helpful. If you could print your current |
Starting take a look at this. |
That's not currently supported but we could add it. I think that feature request makes sense. |
@bootstraponline or @pawelpasterz do you know why the following examples are invalid?
it fails with
This syntax is also invalid:
but fails with a different error:
|
This fails because you have to provide a test apk, only an app apk is optional. |
This is not valid YAML, it should be:
The |
Thanks @bootstraponline that helps. When you say
|
The example you shared is not valid YAML, it won't be parsed. 🙂 gcloud:
app: app1.apk
test: test1.apk
flank:
additional-app-test-apks:
- test: test2.apk
- app: app2.apk
test: test3.apk In this example there are the following pairs, each one is an individual matrix on FTL.
|
This adds a new plugin called `com.osacky.fulladle` which is to be applied at the root of the project. It scans the project's submodules and adds all the apks and test apks to additionalTestApks. References #96
This adds a new plugin called `com.osacky.fulladle` which is to be applied at the root of the project. It scans the project's submodules and adds all the apks and test apks to additionalTestApks. References #96
Hey @runningcode @bootstraponline, I have created pull request which can resolve this problem, I hope. |
@runningcode I think this is solved? |
Not yet, I've gotten a few reports that the plugin is configuring APKs that don't exist. I need to investigate why this is happening. I think the plugin is not ready until that is done. |
Going to close this. I haven't gotten many reports that it works or it doesn't. https://runningcode.github.io/fladle/multi-module-testing/ |
It would be nice if fladle automatically configured and ran all your project's additional test apks in a single fladle run in order to aggregate the test reporting.
Gathering thoughts here on creating a secondary fladle plugin that would be applied in the project root and detect all the modules with androidTest apks. These test apks would then be passed to
additionalTestApks
as arguments.Considerations:
additionalTestApks
?If you are currently using `additionalTestApks, could you post a snippet as to how yours in your project looks below? I want to get an idea of how the community is currently using that feature so that this plugin can mimic that behavior.
The text was updated successfully, but these errors were encountered: