-
Notifications
You must be signed in to change notification settings - Fork 215
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
Support alternate test suites #1520
Comments
Gradle per se doesn't; that link points to documentation for the JVM test suite plugin. Even Xav mentions that here: https://issuetracker.google.com/issues/307694643#comment7 Does Gradle intend to provide core platform for this? Taking a step back, what's the value proposition of supporting this? It's not clear to me why the "very useful" part of the feature request in AGP would be: https://issuetracker.google.com/issues/307694643#comment1. If it's because of AGP/Robolectric conflicting with each other re: bytecode manipulation, then I'd encourage fixing that instead. If it's to run a subset of tests, using --tests with a regex or test annotation markers would be preferred here. Mind elaborating more on the use cases? |
The point of test suites is to separate the suites. In Android this comes with different tech, in JVM too, but only sometimes. Screenshot tests are a very specific type of tests, just like unit tests, instrumentation tests, etc. I could imagine an integration tests as a suite as well. Each of these groups of tests would have different dependencies, and different approaches, which could go as far as one running TestNG and another JUnit. Yes, it is possible (potentially with hacks and workarounds) to have all of these in one source set, but why would that be the norm if we can do better? Simply splitting up tests into source sets solves a ton of problems. You can have different resources, annotation processors, even languages! Also how much more ergonomic is |
The AGP doesn't currently support the
Having layoutlib on the classpath provides different implementations of We need to support tests that work in a "plain old" android With a separate test suite, tests that require the I opened this issue more as a placeholder for if/when AGP ever decides to support the Our current workaround will be to have plain old unit tests in |
can we remove the waiting on user tag on this one? |
Gradle supports multiple test suites: https://docs.gradle.org/current/userguide/jvm_test_suite_plugin.html
AGP doesn't support this yet:
https://issuetracker.google.com/issues/307694643
If/when AGP does support a test suite concept, paparazzi would need to allow for configuring with test suites it will run in.
As of version
1.3.4
, it looks like it only supports a default test suite named "test".paparazzi/paparazzi-gradle-plugin/src/main/java/app/cash/paparazzi/gradle/PaparazziPlugin.kt
Line 289 in 6bbe276
paparazzi/paparazzi-gradle-plugin/src/main/java/app/cash/paparazzi/gradle/PaparazziPlugin.kt
Line 178 in 6bbe276
The text was updated successfully, but these errors were encountered: