Skip to content

Conversation

@rohit9625
Copy link
Collaborator

Description (required)

Fixes #6223

What changes did you make and why?
Since the ContributionsListFragmentUnitTests and BottomSheetLoggedOutFragmentUnitTests were failing for prodRelease due to FragmentScenario not being available for the release source set. So, I moved those tests to the androidTest source set and added the dependency correctly as mentioned in the documentation.

Tests performed (required)

Tested prodDebug, and prodRelease on Samsung A14 with API level 34.

Screenshots (for UI changes only)
None

@github-actions
Copy link

github-actions bot commented May 3, 2025

✅ Generated APK variants!

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit tests successful on both testDebug and prodRelease, app still working fine.
Thanks a lot!

@nicolas-raoul nicolas-raoul merged commit 3f2077a into commons-app:main May 9, 2025
1 check passed
sonalyadav1 pushed a commit to sonalyadav1/apps-android-commons that referenced this pull request May 22, 2025
@rohit9625 rohit9625 deleted the fix/prod-release-failing-tests branch May 25, 2025 10:15
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.

Unit tests failing for prodRelease flavor

2 participants