Skip to content

Commit

Permalink
Add orchestrator dep when androidTest is enabled (#1185)
Browse files Browse the repository at this point in the history
This is needed in order to run instrumentation tests locally.
  • Loading branch information
valeraz authored Jan 24, 2025
1 parent f1e7841 commit 3a69f6b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ internal class StandardProjectConfigurations(
.getOrElse(false)
val isAndroidTestEnabled = variant is HasAndroidTest && variant.androidTest != null
if (isAndroidTestEnabled) {
if (foundryProperties.useOrchestrator.getOrElse(false)) {
dependencies.add("androidTestUtil", "androidx.test:orchestrator")
}
if (!excluded && isAffectedProject) {
// Aggregate test apks. In Fladle we aggregate test APKs, in emulator.wtf we aggregate
// to their root project dep
Expand Down

0 comments on commit 3a69f6b

Please sign in to comment.