Investigate running Robolectric unit tests from root folder.
Categories
(Fenix :: General, enhancement, P1)
Tracking
(firefox133 fixed)
Tracking | Status | |
---|---|---|
firefox133 | --- | fixed |
People
(Reporter: mcarare, Assigned: mcarare)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid][group1])
Attachments
(1 file)
Currently, when running tests with Robolectric, they fail with ResourcesNotFoundException
if there is any Android resource ( like a string) needed and they are started from the root folder instead of the module where they reside ( android-components for example.)
Comment 1•5 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Fenix::UI Tests' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Assignee | ||
Updated•5 months ago
|
Assignee | ||
Comment 2•2 months ago
|
||
Ran into another issue generated by this.
When testing Robolectric with SDK 35 as a target (https://bugzilla.mozilla.org/show_bug.cgi?id=1920977)I noticed that the tests that fail when run from the AC module pass when run from the root folder. This is due to the fact that they run on SDK 21 ( min SDK) instead of the target SDK.
So I believe there is a common cause and a common fix for these effects.
Updated•2 months ago
|
Assignee | ||
Comment 3•2 months ago
|
||
Comment 5•2 months ago
|
||
bugherder |
Description
•