Skip to content

Conversation

@itsadityaaaaa
Copy link
Collaborator

@itsadityaaaaa itsadityaaaaa commented Jan 20, 2026

Explanation

Fix part of #5815

  • It includes tests for:
    • AdminstatorControlsFragmentTest
    • Portrait, Landascape & Mutipane (Analytics Disabled and Enabled)
    • AdminstartorControlsActivityTest
    • Portrait, Landscape & Multipane (Analytics Disabled and Enabled)
    • MathExpressionExtensionTest

Essential Checklist

  • The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • Any changes to scripts/assets files have their rationale included in the PR explanation.
  • The PR follows the style guide.
  • The PR does not contain any unnecessary code changes from Android Studio (reference).
  • The PR is made from a branch that's not called "develop" and is up-to-date with "develop".
  • The PR is assigned to the appropriate reviewers (reference).

For UI-specific PRs only

If your PR includes UI-related changes, then:

  • Add screenshots for portrait/landscape for both a tablet & phone of the before & after UI changes
  • For the screenshots above, include both English and pseudo-localized (RTL) screenshots (see RTL guide)
  • Add a video showing the full UX flow with a screen reader enabled (see accessibility guide)
  • For PRs introducing new UI elements or color changes, both light and dark mode screenshots must be included
  • Add a screenshot demonstrating that you ran affected Espresso tests locally & that they're passing

@itsadityaaaaa itsadityaaaaa requested a review from a team as a code owner January 20, 2026 17:02
@itsadityaaaaa itsadityaaaaa marked this pull request as draft January 20, 2026 17:03
@itsadityaaaaa itsadityaaaaa changed the title Add test Fix part of #5815 added some new test Jan 20, 2026
@itsadityaaaaa
Copy link
Collaborator Author

@manas-yu @adhiamboperes before moving forward or commiting more test in the PR just need a small assurance on the logic and format of the tests. It will be great help.

Copy link
Contributor

@adhiamboperes adhiamboperes left a comment

Choose a reason for hiding this comment

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

Thanks @itsadityaaaaa, the tests are on the right path. Please take a look at my comments before proceeding further.

@github-actions
Copy link

Coverage Report

Results

Number of files assessed: 4
Overall Coverage: 97.50%
Coverage Analysis: PASS

Passing coverage

Files with passing code coverage
File Coverage Lines Hit Status Min Required
MathExpressionExtensions.ktutility/src/main/java/org/oppia/android/util/math/MathExpressionExtensions.kt
97.50% 39 / 40 42% *

* represents tests with custom overridden pass/fail coverage thresholds

Exempted coverage

Files exempted from coverage
File Exemption Reason
AdministratorControlsActivity.ktapp/src/main/java/org/oppia/android/app/administratorcontrols/AdministratorControlsActivity.kt
This file is incompatible with code coverage tooling; skipping coverage check.
AdministratorControlsFragment.ktapp/src/main/java/org/oppia/android/app/administratorcontrols/AdministratorControlsFragment.kt
This file is incompatible with code coverage tooling; skipping coverage check.
AdministratorControlsFragmentTestActivity.ktapp/src/main/java/org/oppia/android/app/testing/AdministratorControlsFragmentTestActivity.kt
This file is exempted from having a test file; skipping coverage check.

Refer test_file_exemptions.textproto for the comprehensive list of file exemptions and their required coverage percentages.

To learn more, visit the Oppia Android Code Coverage wiki page

@itsadityaaaaa itsadityaaaaa marked this pull request as ready for review January 28, 2026 17:23
@itsadityaaaaa itsadityaaaaa requested a review from a team as a code owner January 28, 2026 17:23
@itsadityaaaaa
Copy link
Collaborator Author

@adhiamboperes I have applied the suggested changes please take a look, and tell me if anything else required. If all this seems ok should I consider opening a new PR for other tests?

@oppiabot oppiabot bot assigned adhiamboperes and unassigned itsadityaaaaa Jan 28, 2026
@oppiabot
Copy link

oppiabot bot commented Jan 28, 2026

Unassigning @itsadityaaaaa since a re-review was requested. @itsadityaaaaa, please make sure you have addressed all review comments. Thanks!

Copy link
Contributor

@adhiamboperes adhiamboperes left a comment

Choose a reason for hiding this comment

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

This is excellent, Thanks @itsadityaaaaa! LGTM.

@adhiamboperes adhiamboperes changed the title Fix part of #5815 added some new test Fix part of #5815: Add Missing Tests Feb 3, 2026
@oppiabot
Copy link

oppiabot bot commented Feb 3, 2026

Unassigning @adhiamboperes since they have already approved the PR.

@oppiabot
Copy link

oppiabot bot commented Feb 3, 2026

Assigning @manas-yu for code owner reviews. Thanks!

Comment on lines +63 to +64
override fun loadLearnerAnalyticsData() {}
override fun routeToLearnerAnalytics() {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Just to verify, are these needed for tests to run?

@adhiamboperes
Copy link
Contributor

@adhiamboperes I have applied the suggested changes please take a look, and tell me if anything else required. If all this seems ok should I consider opening a new PR for other tests?

You can open other PRs.

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.

3 participants