{"action":"created","issue":{"url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp/issues/1317","repository_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp","labels_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp/issues/1317/labels{/name}","comments_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp/issues/1317/comments","events_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp/issues/1317/events","html_url":"https://github.com/openfoodfacts/openfoodfacts-androidapp/pull/1317","id":307562671,"number":1317,"title":"Adds tests for home fragment","user":{"login":"samagra14","id":25154317,"avatar_url":"https://avatars2.githubusercontent.com/u/25154317?v=4","gravatar_id":"","url":"https://api.github.com/users/samagra14","html_url":"https://github.com/samagra14","followers_url":"https://api.github.com/users/samagra14/followers","following_url":"https://api.github.com/users/samagra14/following{/other_user}","gists_url":"https://api.github.com/users/samagra14/gists{/gist_id}","starred_url":"https://api.github.com/users/samagra14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samagra14/subscriptions","organizations_url":"https://api.github.com/users/samagra14/orgs","repos_url":"https://api.github.com/users/samagra14/repos","events_url":"https://api.github.com/users/samagra14/events{/privacy}","received_events_url":"https://api.github.com/users/samagra14/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-22T09:23:45Z","updated_at":"2018-03-22T09:24:24Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp/pulls/1317","html_url":"https://github.com/openfoodfacts/openfoodfacts-androidapp/pull/1317","diff_url":"https://github.com/openfoodfacts/openfoodfacts-androidapp/pull/1317.diff","patch_url":"https://github.com/openfoodfacts/openfoodfacts-androidapp/pull/1317.patch"},"body":"## Description\r\n\r\nThis is an attempt to begin the testing suite of the app. Currently, MainActivity cannot be tested due to a lot of interconnected Idling resources, therefore I am slightly modifying the main activity to make it fit for testing.\r\nBesides this, I have added a FragmentTestActivity for the testing of a single fragment. I have added the test for the HomeFragment. I will be adding more espresso tests for the other fragments as well. \r\n\r\n* Modified MainActivity to make it fit for testing\r\n* Added a FragmentTestActivity for testing individual fragments\r\n* A small test for HomeFragment\r\n\r\nI am also planning to open a discussion issue regarding MVVM and testing instructions for the app.\r\n\r\n## Related issues and discussion\r\nNA\r\n ## Checklist\r\n \r\nMake sure you've done all the following (You can delete the checklist before submitting)\r\n \r\n - [x] Apply the `AndroidStyle.xml` style template to your code in Android Studio.\r\n - [x] Code is well documented\r\n - [x] Include unit tests for new functionality\r\n - [x] All user-visible strings are made translatable\r\n - [x] Code passes Travis builds in your branch\r\n - [x] If you have multiple commits please combine them into one commit by squashing them.\r\n - [ ] Read and understood the contribution guidelines .\r\n"},"comment":{"url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp/issues/comments/375230968","html_url":"https://github.com/openfoodfacts/openfoodfacts-androidapp/pull/1317#issuecomment-375230968","issue_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp/issues/1317","id":375230968,"user":{"login":"samagra14","id":25154317,"avatar_url":"https://avatars2.githubusercontent.com/u/25154317?v=4","gravatar_id":"","url":"https://api.github.com/users/samagra14","html_url":"https://github.com/samagra14","followers_url":"https://api.github.com/users/samagra14/followers","following_url":"https://api.github.com/users/samagra14/following{/other_user}","gists_url":"https://api.github.com/users/samagra14/gists{/gist_id}","starred_url":"https://api.github.com/users/samagra14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samagra14/subscriptions","organizations_url":"https://api.github.com/users/samagra14/orgs","repos_url":"https://api.github.com/users/samagra14/repos","events_url":"https://api.github.com/users/samagra14/events{/privacy}","received_events_url":"https://api.github.com/users/samagra14/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T09:24:24Z","updated_at":"2018-03-22T09:24:24Z","author_association":"CONTRIBUTOR","body":"@Karljoones @teolemon \r\nPlease provide your views here."}}
{"actor":{"display_login":"samagra14"}}