Skip to content

test(reader): Readium 3 instrumentation tests + emulator CI - #2

Merged
libravault-xyz merged 1 commit into
mainfrom
feat/readium-instrumentation-tests
Apr 24, 2026
Merged

libravault-xyz merged 1 commit into
mainfrom
feat/readium-instrumentation-tests

Conversation

@libravault-xyz

Copy link
Copy Markdown
Collaborator

This PR adds the first instrumentation test for the Readium 3 EPUB pipeline.

What's included

  • Instrumentation test that opens a real EPUB asset through [ReadiumProvider] and verifies:
    • → → produces a valid [Publication]
    • Metadata title matches the expected value
  • Demo EPUB asset () — minimal valid EPUB-3.0 file (2 KB) packaged as an asset
  • Build config + deps in
  • CI reverted to emulator runner with

Scope

  • Does NOT test [HiltViewModel] injection (would need + custom Application class — can be added in follow-up)
  • Does NOT test UI rendering (keeps the test focused on the Readium pipeline)

Verification

CI will run Calculating task graph as no cached configuration is available for tasks: connectedDebugAndroidTest

Task :build-logic:convention:checkKotlinGradlePluginConfigurationErrors
Task :build-logic:convention:compileKotlin UP-TO-DATE
Task :build-logic:convention:compileJava NO-SOURCE
Task :build-logic:convention:pluginDescriptors UP-TO-DATE
Task :build-logic:convention:processResources UP-TO-DATE
Task :build-logic:convention:classes UP-TO-DATE
Task :build-logic:convention:jar UP-TO-DATE
5 actionable tasks: 1 executed, 4 up-to-date
Configuration cache entry stored. on API 34 emulator.


Closes part of the Readium 3 migration work.

libravault-xyz pushed a commit that referenced this pull request Apr 24, 2026
- Add androidTestImplementation deps to feature/reader/build.gradle.kts
- Set testInstrumentationRunner = AndroidJUnitRunner
- Add androidTest sourceSet asset dir config
- Create ReadiumIntegrationTest.kt: opens demo EPUB via ReadiumProvider,
  verifies AssetRetriever -> EpubParser -> PublicationOpener pipeline
- Add minimal valid EPUB asset (src/androidTest/assets/demo.epub)
- Revert CI to emulator runner (connectedDebugAndroidTest)

Refs: PR #2
@libravault-xyz
libravault-xyz force-pushed the feat/readium-instrumentation-tests branch from aaf9a1e to ffb6ee6 Compare April 24, 2026 07:28
- Add androidTestImplementation deps to feature/reader/build.gradle.kts
- Set testInstrumentationRunner = AndroidJUnitRunner
- Add androidTest sourceSet asset dir config
- Create ReadiumIntegrationTest.kt: opens demo EPUB via ReadiumProvider,
  verifies AssetRetriever -> EpubParser -> PublicationOpener pipeline
- Add minimal valid EPUB asset (src/androidTest/assets/demo.epub)
- Revert CI to emulator runner (connectedDebugAndroidTest)

Refs: PR #2
@libravault-xyz
libravault-xyz force-pushed the feat/readium-instrumentation-tests branch from ffb6ee6 to e49f30e Compare April 24, 2026 08:04
@libravault-xyz
libravault-xyz merged commit 9f5af9d into main Apr 24, 2026
3 checks passed
@libravault-xyz
libravault-xyz deleted the feat/readium-instrumentation-tests branch April 24, 2026 08:40
libravault-xyz added a commit that referenced this pull request Jun 7, 2026
- Add androidTestImplementation deps to feature/reader/build.gradle.kts
- Set testInstrumentationRunner = AndroidJUnitRunner
- Add androidTest sourceSet asset dir config
- Create ReadiumIntegrationTest.kt: opens demo EPUB via ReadiumProvider,
  verifies AssetRetriever -> EpubParser -> PublicationOpener pipeline
- Add minimal valid EPUB asset (src/androidTest/assets/demo.epub)
- Revert CI to emulator runner (connectedDebugAndroidTest)

Refs: PR #2

Co-authored-by: Hermes CI <hermes@libravault.xyz>
libravault-xyz pushed a commit that referenced this pull request Jul 17, 2026
…fit/Moshi

RecoveryService was a Retrofit interface for a /recover endpoint that
no UI flow ever wired up. ProConfig carried a SHOW_PURCHASE_LINK /
PURCHASE_URL / RECOVERY_BASE_URL that were also unreferenced. Both
were the source of the misleading 'ONLY network-touching component'
docstring (review finding #2 + #3).

Removing both lets us drop retrofit / converter-moshi / moshi-kotlin
from core/licensing/build.gradle.kts — none of those deps had any
other consumer in the module.

Verified zero remaining references via:
  grep -rn 'RecoveryService|RecoveryRequest|RecoveryResponse|ProConfig|RECOVERY_BASE_URL' --include='*.kt'
  grep -rn 'retrofit2|moshi' --include='*.kt' --include='*.kts'

The recovery roadmap entry moves to docs/v2-roadmap.md in WS8.
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.

1 participant