Skip to content

Bug 2073095 - remove mockk from ui tests to unlock running on nightly - #368

Closed
pollym wants to merge 1 commit into
mozilla-firefox:autolandfrom
pollym:remove-mockk-from-ui-tests
Closed

pollym wants to merge 1 commit into
mozilla-firefox:autolandfrom
pollym:remove-mockk-from-ui-tests

Conversation

@pollym

@pollym pollym commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Mockk only runs on debuggable builds. And we have an aspiration to run the ui tests on the nightly build. So a bit of refactoring is needed. (This is just a couple of the changes that will be required! more to follow)

  • OnboardingMapperTest: luckily, in this case, a fake is easily substituted
  • CrashPullDelegateTest: lazy init means we don't need mocks or fakes 🎉

try is running here


Lando: link
Bugzilla: bug 2073095

⚠️ This pull request has 4 warnings.
🚫 This pull request has 2 blockers.

@lando-web
lando-web Bot requested a review from a team September 24, 2026 16:55
@github-actions

Copy link
Copy Markdown
Contributor

View this pull request in Lando to land it once approved.

@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

@pollym
pollym force-pushed the remove-mockk-from-ui-tests branch from 0a17cc0 to 7369693 Compare September 25, 2026 09:19
Mockk only runs on debuggable builds.
- OnboardingMapperTest: luckily, in this case, a fake is easily substituted
- CrashPullDelegateTest: lazy init means we don't need mocks or fakes 🎉
@pollym
pollym force-pushed the remove-mockk-from-ui-tests branch from 7369693 to 12bf3a5 Compare September 25, 2026 13:33

@mcarare mcarare left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

@lando-worker

lando-worker Bot commented Sep 25, 2026

Copy link
Copy Markdown

Pull request closed by commit a82944e

lando-worker Bot pushed a commit that referenced this pull request Sep 25, 2026
… r=mcarare

Mockk only runs on debuggable builds. And we have an aspiration to run the ui tests on the nightly build. So a bit of refactoring is needed. (This is just a couple of the changes that will be required! more to follow)

- `OnboardingMapperTest`: luckily, in this case, a fake is easily substituted
- `CrashPullDelegateTest`: lazy init means we don't need mocks or fakes 🎉

[try is running here](https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=97406)

Pull request: #368
@lando-worker lando-worker Bot closed this Sep 25, 2026
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

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.

2 participants