Fix robolectric not working#87
Open
uOOOO wants to merge 10 commits into
Open
Conversation
Kotlin 1.5.0 → 2.3.10, kotlinx-serialization 1.2.1 → 1.10.0, JUnit5 5.5.2 → 5.14.2, AssertJ 3.19.0 → 3.27.7, MockK 1.10.6 → 1.14.9, AGP 4.2.1 → 9.1.0, compileSdk/targetSdk 30 → 36, minSdk 18 → 21, and Android test library versions.
Remove package attribute from manifests (now declared in build.gradle.kts) and add android:exported to SampleActivity.
AllureThreadContext now uses a shared volatile activeRoot field so that test steps are correctly recorded when the test body runs on a different thread from the one that started the test case (e.g. Robolectric).
Add AllureRobolectricRunner that excludes allure packages from Robolectric's SandboxClassLoader, ensuring a single shared Allure singleton between test code and the JUnit listener.
- Fix sharedTest source set not recognized (java → kotlin directories) - Add isReturnDefaultValues for unmocked Android API calls - Narrow doNotAcquirePackage to io.qameta.allure.kotlin to avoid classloader conflict with ActivityScenario
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Fix #84, #86 issue
Checklist