Fix app module tests for Roboelectric
See original GitHub issueCurrently, the app
module test cases are passing on Espresso
but they should also pass on Robolectric
. Fix these below mentioned files to make sure that the tests pass on Robolectric
.
You can run robolectric tests by following these steps: https://github.com/oppia/oppia-android/wiki/Oppia-Android-Testing#running-roboelectric-tests
Also, make sure that you assign yourself one task only at a time, which you can mention in the comments below.
Fixing test cases will need to introduce TextApplicationComponent
. This can be seen here.
-
AppVersionActivityTest
(Assigned to @anandwana001 ) -
CompletedStoryListActivityTest
(Assigned to @anandwana001 ) -
FAQListFragmentTest
(Assigned to @Sarthak2601 ) -
FAQSingleActivityTest
(Assigned to @SayantanBanerjee16 ) -
HelpFragmentTest
(Assigned to @SayantanBanerjee16 ) -
MyDownloadsFragmentTest
(Assigned to @anandwana001 ) -
HtmlParserTest
(Assigned to @anandwana001 ) -
StateFragmentTest
(Fixed in #1630) -
AddProfileActivityTest
(Assigned to @anandwana001 ) -
AdminAuthActivityTest
(Assigned to @anandwana001 ) -
AdminPinActivityTest
(Assigned to @anandwana001 ) -
ProfilePictureActivityTest
(Assigned to @anandwana001 ) -
ProfileProgressFragmentTest
(Assigned to @veena14cs ) -
BindableAdapterTest
(Assigned to @anandwana001 ) -
SplashActivityTest
(Fixed in #1397) -
StoryActivityTest
(Assigned to @anandwana001 ) -
StoryFragmentTest
(Assigned to @anandwana001 ) -
QuestionPlayerActivityTest
(Assigned to @anandwana001) -
TopicTestActivityForStoryTest
(Assigned to @anandwana001 ) -
RevisionCardFragmentTest
(Assigned to @anandwana001 ) -
WalkthroughWelcomeFragmentTest
(Assigned to @veena14cs ) -
WalkthroughTopicListFragmentTest
(Assigned to @anandwana001 ) -
WalkthroughFinalFragmentTest
(Assigned to @anandwana001 ) -
WalkthroughActivityTest
(Assigned to @anandwana001 )
Issue Analytics
- State:
- Created 3 years ago
- Comments:48 (48 by maintainers)
Top Results From Across the Web
Unit Testing with Robolectric | CodePath Android Cliffnotes
It allows Android applications to be tested on the JVM without an emulator or device. Running Android tests on the JVM usually fails...
Read more >Writing Your First Test - Robolectric
We want to write a test that asserts that when a user clicks on a button, the app launches the LoginActivity. public class...
Read more >App can't run Robolectric unit tests - Stack Overflow
I'm using a custom Robolectric runner, where I've just implemented its constructor (to set the correct path of resource files):.
Read more >Unit Testing Basics with Robolectric - LearnHowToProgram.com
To run local tests we will use the Robolectric unit testing framework. With Robolectric, we will test the behaviors of a particular component...
Read more >Hilt testing guide | Android Developers
To replace the AnalyticsService binding in tests, create a new Hilt module in the test or androidTest folder with the fake dependency and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rt4914 Since we are going to take this issue under SLoP, can we freeze its contributions for now ? It might lead to confusion otherwise. @prayutsu Please wait on Rajat to reply. /cc- @anandwana001
MyDownloadFragmentTest we cannot mark it as done. As there is still actual implementation has to be done. @rt4914 please confirm on this.
InputInteractionViewTestActivityTest
we can mark it as done but just want to confirm with @nikitamarysolomanpvt and @BenHenning if we have to wait for number with units implementation and testcases.We can mark
ProfilePictureActivityTest
as done.