Skip to content

Support Android test fixtures in generated Gradle projects - #770

Open
michele-theleftbit wants to merge 1 commit into
skiptools:mainfrom
michele-theleftbit:codex/android-test-fixtures
Open

michele-theleftbit wants to merge 1 commit into
skiptools:mainfrom
michele-theleftbit:codex/android-test-fixtures

Conversation

@michele-theleftbit

@michele-theleftbit michele-theleftbit commented Nov 30, 2026 •

Copy link
Copy Markdown

Change

Add an opt-in for Android test fixtures. Route Kotlin under Skip/testFixtures into the fixture source set and add the SkipUnit fixture variant to generated unit-test and instrumentation-test dependencies when SkipUnit opts in.

This allows the companion SkipUnit change to keep its parameterized JUnit runner, argument provider and TestParameterInjector out of the main artifact.

Validation

  • Built the patched Skipstone from source.
  • Ran a separate SwiftPM consumer with both patches. The two generated parameterized JUnit cases passed.
  • Ran :app:minifyReleaseWithR8 on a minimal Android consumer with SkipUnit's main artifact on its release classpath.
  • Verified TestParameterInjector was absent from releaseRuntimeClasspath and neither parameterized runner class was in the main SkipUnit release AAR.

Companion SkipUnit PR: skiptools/skip-unit#29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants