test: unit tests for WikiSite (sub-issue of #6630)

Open Beginner friendly
#7,419 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Seyamalam is already working on this.

Since Nov 26, 2026.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
android, kotlin
Domain
mobile, testing

Research direction

Start from the WikiSite class and check whether the referenced PR #7417 already adds any of these tests before writing new ones. Cover the default https scheme, scheme-relative URLs, explicit schemes, language-code extraction from subdomains, and canonical and mobile URL construction in a WikiSiteTest unit test. Done when the new tests run and pass under the project's unit-test task.

Written by the indexing model from the issue text.

Description

Sub-issue of #6630 for PR #7417.

Adds WikiSiteTest unit-test coverage for WikiSite: URL scheme handling (default https, scheme-relative, explicit schemes), language-code extraction from subdomains, and canonical/mobile URL construction.

Dominant language
Kotlin
Stars
1.2k
Forks
1.4k
Avg merge
1d 4h
Merged PRs (30d)
156

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from commons-app/apps-android-commons

All issues in commons-app/apps-android-commons

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.