Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LD-145] Add code coverage for E2E tests. #199

Merged
merged 17 commits into from
Jan 26, 2024

Update execution data.

15417b6
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

[LD-145] Add code coverage for E2E tests. #199

Update execution data.
15417b6
Select commit
Loading
Failed to load commit list.
GitHub Actions / Tests Results succeeded Jan 23, 2024 in 0s

Tests Results ✅

Tests passed successfully

Report Passed Failed Skipped Time
app/build/test-results/results.xml 9✅ 40s
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.ActivitySetupTest.xml 1✅ 8s
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.analytics.EventParametersConverterTest.xml 1✅ 2s
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.analytics.FirebaseAnalyticsEventTrackerTest.xml 1✅ 975ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.di.CheckModulesTest.xml 1✅ 2s
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.domain.AuthRepositoryImplTest.xml 4✅ 68ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.domain.PullRequestRepositoryImpTest$GetPullRequestsForUserTest.xml 2✅ 166ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.domain.PullRequestRepositoryImpTest$GetRequestedReviewersTest.xml 2✅ 127ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.domain.PullRequestRepositoryImpTest$GetReviewsFunctionTest.xml 2✅ 83ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.domain.PullRequestRepositoryImpTest$NotifyTest.xml 2✅ 24ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.domain.UserLocalDataSourceTest.xml 3✅ 6ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.datasource.AuthDataSourceImplTest.xml 3✅ 529ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$GetPullRequestsForUserTest.xml 3✅ 127ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$GetReviewersRequestTest.xml 3✅ 65ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$GetReviewsRequestTest.xml 3✅ 99ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$NotifyRequestTest.xml 3✅ 78ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.datasource.UserDataSourceTest.xml 3✅ 85ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.intercept.AuthFailureInterceptorTest.xml 2✅ 133ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.intercept.AuthInterceptorTest.xml 1✅ 101ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.serialize.IdSerializerTest.xml 1✅ 66ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.serialize.InstantSerializerTest.xml 2✅ 18ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.RobolectricSetupTest.xml 1✅ 51ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.ui.authenticating.AuthenticatingViewModelTest.xml 7✅ 834ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.ui.login.LoginScreenViewModelTest.xml 6✅ 70ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.ui.MainViewModelTest.xml 3✅ 87ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.ui.pullrequests.PullRequestsViewModelTest.xml 9✅ 168ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.ui.reviewers.ReviewersViewModelTest$InitTest.xml 14✅ 432ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.ui.reviewers.ReviewersViewModelTest$OnActionTest.xml 6✅ 153ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.UnitLoginScreenTest.xml 3✅ 6s
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.UnitPullRequestsScreenTest.xml 1✅ 940ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.UnitReviewersScreenTest.xml 3✅ 919ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.UnitWalkThroughAppTest.xml 1✅ 833ms
app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.util.TestUtilsKtTest.xml 1✅ 20ms

✅ app/build/test-results/results.xml

9 tests were completed in 40s with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
9✅ 40s

✅ 

com.appunite.loudius.End2EndWalkThroughAppTest
  ✅ whenLoginScreenIsVisible_LoginButtonOpensGithubAuth
com.appunite.loudius.IntegrationLoginScreenTest
  ✅ whenClickingGrantPermissionInXiaomiDialog_OpenPermissionEditor
  ✅ whenLoginScreenIsVisible_LoginButtonOpensGithubAuth
  ✅ whenClickingPermissionGrantedInXiaomiDialog_OpenGithubAuth
com.appunite.loudius.IntegrationPullRequestsScreenTest
  ✅ whenResponseIsCorrectThenPullRequestItemIsVisible
com.appunite.loudius.IntegrationReviewersScreenTest
  ✅ whenClickOnNotifyAndCommentThenNotifyReviewer
  ✅ whenClickOnNotifyAndDoNotCommentThenShowError
  ✅ whenResponseIsCorrectThenReviewersAreVisible
com.appunite.loudius.IntegrationWalkThroughAppTest
  ✅ whenLoginScreenIsVisible_LoginButtonOpensGithubAuth

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.ActivitySetupTest.xml

1 tests were completed in 8s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.ActivitySetupTest 1✅ 8s

✅ com.appunite.loudius.ActivitySetupTest

✅ ensure test activity can be started during tests

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.analytics.EventParametersConverterTest.xml

1 tests were completed in 2s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.analytics.EventParametersConverterTest 1✅ 2s

✅ com.appunite.loudius.analytics.EventParametersConverterTest

✅ testConvert

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.analytics.FirebaseAnalyticsEventTrackerTest.xml

1 tests were completed in 975ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.analytics.FirebaseAnalyticsEventTrackerTest 1✅ 975ms

✅ com.appunite.loudius.analytics.FirebaseAnalyticsEventTrackerTest

✅ testTrackEvent

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.di.CheckModulesTest.xml

1 tests were completed in 2s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.di.CheckModulesTest 1✅ 2s

✅ com.appunite.loudius.di.CheckModulesTest

✅ verifyKoinApp()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.domain.AuthRepositoryImplTest.xml

4 tests were completed in 68ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.domain.AuthRepositoryImplTest 4✅ 68ms

✅ com.appunite.loudius.domain.AuthRepositoryImplTest

✅ GIVEN valid code WHEN fetching access token THEN THEN new token should be stored()
✅ GIVEN not stored access token WHEN getting access token THEN return empty string()
✅ GIVEN valid code WHEN fetching access token THEN return success with new valid token()
✅ GIVEN token stored WHEN getting access token THEN return stored access token()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.domain.PullRequestRepositoryImpTest$GetPullRequestsForUserTest.xml

2 tests were completed in 166ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.domain.PullRequestRepositoryImpTest$GetPullRequestsForUserTest 2✅ 166ms

✅ com.appunite.loudius.domain.PullRequestRepositoryImpTest$GetPullRequestsForUserTest

✅ GIVEN logged in user WHEN getting user's pull requests THEN return pull requests()
✅ WHEN Network Error is returned during fetching user's pull request THEN return Network Error()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.domain.PullRequestRepositoryImpTest$GetRequestedReviewersTest.xml

2 tests were completed in 127ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.domain.PullRequestRepositoryImpTest$GetRequestedReviewersTest 2✅ 127ms

✅ com.appunite.loudius.domain.PullRequestRepositoryImpTest$GetRequestedReviewersTest

✅ GIVEN correct pull request number WHEN get requesting reviewers THEN return result with requested reviewers()
✅ GIVEN incorrect pull request number WHEN get requested reviewers THEN return Unknown Error with 404 code()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.domain.PullRequestRepositoryImpTest$GetReviewsFunctionTest.xml

2 tests were completed in 83ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.domain.PullRequestRepositoryImpTest$GetReviewsFunctionTest 2✅ 83ms

✅ com.appunite.loudius.domain.PullRequestRepositoryImpTest$GetReviewsFunctionTest

✅ GIVEN incorrect pull request number WHEN getting reviews THEN return Unknown Error with 404 code()
✅ GIVEN correct pull request data WHEN getting reviews THEN return result with reviews excluding ones from current user()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.domain.PullRequestRepositoryImpTest$NotifyTest.xml

2 tests were completed in 24ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.domain.PullRequestRepositoryImpTest$NotifyTest 2✅ 24ms

✅ com.appunite.loudius.domain.PullRequestRepositoryImpTest$NotifyTest

✅ GIVEN correct pull request number WHEN notifying THEN return success result()
✅ GIVEN incorrect pull request number WHEN notifying THEN return Unknown Error with 404 code()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.domain.UserLocalDataSourceTest.xml

3 tests were completed in 6ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.domain.UserLocalDataSourceTest 3✅ 6ms

✅ com.appunite.loudius.domain.UserLocalDataSourceTest

✅ WHEN token is set THEN token can be retrieved()
✅ GIVEN token is stored WHEN token is cleared THEN no token to retrieve()
✅ GIVEN the app is started first time WHEN getting access token THEN token is empty()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.datasource.AuthDataSourceImplTest.xml

3 tests were completed in 529ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.network.datasource.AuthDataSourceImplTest 3✅ 529ms

✅ com.appunite.loudius.network.datasource.AuthDataSourceImplTest

✅ GIVEN incorrect access code WHEN accessing token THEN return failure with BadVerificationCodeException()
✅ GIVEN incorrect data WHEN accessing token THEN return failure with UnknownError()
✅ GIVEN correct data WHEN accessing token THEN return success with new valid token()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$GetPullRequestsForUserTest.xml

3 tests were completed in 127ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$GetPullRequestsForUserTest 3✅ 127ms

✅ com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$GetPullRequestsForUserTest

✅ Given correct params WHEN successful response THEN return success()
✅ Given request WHEN connectivity problem occurred THEN return failure with Network error()
✅ Given incorrect access token WHEN processing request THEN return failure with Unknown error()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$GetReviewersRequestTest.xml

3 tests were completed in 65ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$GetReviewersRequestTest 3✅ 65ms

✅ com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$GetReviewersRequestTest

✅ Given correct params WHEN successful response THEN return success()
✅ Given request WHEN connectivity problem occurred THEN return failure with Network error()
✅ Given incorrect access token WHEN processing request THEN return failure with Unknown error()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$GetReviewsRequestTest.xml

3 tests were completed in 99ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$GetReviewsRequestTest 3✅ 99ms

✅ com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$GetReviewsRequestTest

✅ Given correct params WHEN successful response THEN return success()
✅ Given request WHEN connectivity problem occurred THEN return failure with Network error()
✅ Given incorrect access token WHEN processing request THEN return failure with Unknown error()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$NotifyRequestTest.xml

3 tests were completed in 78ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$NotifyRequestTest 3✅ 78ms

✅ com.appunite.loudius.network.datasource.PullRequestsDataSourceImplTest$NotifyRequestTest

✅ GIVEN correct params WHEN successful response THEN return success result()
✅ GIVEN connectivity problem WHEN request THEN return failure with Network error()
✅ GIVEN auth error WHEN processing request THEN return failure with Unknown error()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.datasource.UserDataSourceTest.xml

3 tests were completed in 85ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.network.datasource.UserDataSourceTest 3✅ 85ms

✅ com.appunite.loudius.network.datasource.UserDataSourceTest

✅ Given correct params WHEN successful response THEN return success()
✅ Given request WHEN connectivity problem occurred THEN return failure with Network error()
✅ Given incorrect access token WHEN processing request THEN return failure with Unknown error()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.intercept.AuthFailureInterceptorTest.xml

2 tests were completed in 133ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.network.intercept.AuthFailureInterceptorTest 2✅ 133ms

✅ com.appunite.loudius.network.intercept.AuthFailureInterceptorTest

✅ GIVEN authorized user WHEN making an api call THEN auth failure is not emitted()
✅ GIVEN not authorized user WHEN making an api call THEN auth failure should be handled()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.intercept.AuthInterceptorTest.xml

1 tests were completed in 101ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.network.intercept.AuthInterceptorTest 1✅ 101ms

✅ com.appunite.loudius.network.intercept.AuthInterceptorTest

✅ GIVEN saved token WHEN making an api call THEN authorization token should be added()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.serialize.IdSerializerTest.xml

1 tests were completed in 66ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.network.serialize.IdSerializerTest 1✅ 66ms

✅ com.appunite.loudius.network.serialize.IdSerializerTest

✅ testDeserialization

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.network.serialize.InstantSerializerTest.xml

2 tests were completed in 18ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.network.serialize.InstantSerializerTest 2✅ 18ms

✅ com.appunite.loudius.network.serialize.InstantSerializerTest

✅ testSerialization
✅ testDeserialization

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.RobolectricSetupTest.xml

1 tests were completed in 51ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.RobolectricSetupTest 1✅ 51ms

✅ com.appunite.loudius.RobolectricSetupTest

✅ ensure context is mocked correctly

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.ui.authenticating.AuthenticatingViewModelTest.xml

7 tests were completed in 834ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.ui.authenticating.AuthenticatingViewModelTest 7✅ 834ms

✅ com.appunite.loudius.ui.authenticating.AuthenticatingViewModelTest

✅ GIVEN valid code WHEN authenticated THEN navigate to pull requests screen()
✅ GIVEN no intent is provided WHEN screen is presented THEN show login error()
✅ GIVEN unexpected Github behavior WHEN authenticating screen is opened THEN show generic error screen()
✅ GIVEN invalid code WHEN authenticating screen is opened THEN show login error screen()
✅ GIVEN unexpected error is presented WHEN try again success THEN navigate to pull requests()
✅ GIVEN no intent is provided and login error is presented WHEN retry is clicked THEN navigate to the login screen()
✅ GIVEN invalid screen and error is presented WHEN retry click THEN navigate to the login screen()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.ui.login.LoginScreenViewModelTest.xml

6 tests were completed in 70ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.ui.login.LoginScreenViewModelTest 6✅ 70ms

✅ com.appunite.loudius.ui.login.LoginScreenViewModelTest

✅ WHEN log-in click THEN open github authorization()
✅ test the whole xiaomi flow()
✅ GIVEN xiaomi permission dialog is displayed WHEN user click already granted THEN navigate github auth()
✅ GIVEN xiaomi permission dialog is displayed WHEN dismisses dialog THEN hide the dialog()
✅ GIVEN should ask for xiaomi intent WHEN log-in click THEN show xiaomi permission dialog()
✅ GIVEN xiaomi permission dialog is displayed WHEN grant permission THEN navigate to xiaomi permissions manager()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.ui.MainViewModelTest.xml

3 tests were completed in 87ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.ui.MainViewModelTest 3✅ 87ms

✅ com.appunite.loudius.ui.MainViewModelTest

✅ WHEN init THEN auth failure event is null()
✅ WHEN auth failure handled THEN set auth failure event is null()
✅ WHEN auth failure emitted THEN set state with auth failure event()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.ui.pullrequests.PullRequestsViewModelTest.xml

9 tests were completed in 168ms with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.ui.pullrequests.PullRequestsViewModelTest 9✅ 168ms

✅ com.appunite.loudius.ui.pullrequests.PullRequestsViewModelTest

✅ GIVEN error state WHEN retry THEN fetch pull requests list again()
✅ WHEN refresh data THEN refresh data and set isRefreshing to false()
✅ WHEN fetching data failed on init THEN display error()
✅ WHEN refresh data THEN start refreshing data and set isRefreshing to true()
✅ GIVEN item id WHEN item click THEN navigate the user to reviewers()
✅ GIVEN navigation payload WHEN navigating to reviewers THEN reset payload()
✅ WHEN init THEN display loading()
✅ WHEN init THEN display pull requests list()
✅ WHEN refresh data THEN refresh data and display pull requests()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.ui.reviewers.ReviewersViewModelTest$InitTest.xml

14 tests were completed in 432ms with 14 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.ui.reviewers.ReviewersViewModelTest$InitTest 14✅ 432ms

✅ com.appunite.loudius.ui.reviewers.ReviewersViewModelTest$InitTest

✅ GIVEN only reviewers who done reviews WHEN init THEN list of reviewers is fetched()
✅ GIVEN correct initial values WHEN init starts THEN state is loading()
✅ GIVEN no reviewers WHEN init THEN state is correct with no reviewers()
✅ WHEN refresh data THEN refresh data and set isRefreshing to false()
✅ GIVEN correct initial values WHEN init THEN pull request number is correct()
✅ WHEN refresh data THEN refresh data and display reviewers()
✅ GIVEN mixed reviewers WHEN init THEN list of reviewers is fetched()
✅ GIVEN reviewers with no review done WHEN init THEN list of reviewers is fetched()
✅ WHEN there is an error during fetching data from 2 requests on init THEN error is shown()
✅ WHEN refresh data THEN start refreshing data and set isRefreshing to true()
✅ GIVEN no values in saved state WHEN init THEN throw IllegalStateException()
✅ WHEN there is an error during fetching data on init only from reviews request THEN error is shown()
✅ WHEN there is an error during fetching data on init only from requested reviewers request THEN error is shown()
✅ GIVEN correct initial values WHEN init THEN all initial values are read once()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.ui.reviewers.ReviewersViewModelTest$OnActionTest.xml

6 tests were completed in 153ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.ui.reviewers.ReviewersViewModelTest$OnActionTest 6✅ 153ms

✅ com.appunite.loudius.ui.reviewers.ReviewersViewModelTest$OnActionTest

✅ GIVEN error state WHEN on try again action with success result THEN state has reviewers()
✅ WHEN successful notify action THEN show loading indicator()
✅ WHEN successful notify action THEN show success snackbar()
✅ WHEN failed notify action THEN show failure snackbar()
✅ GIVEN user login WHEN on snackbar dismiss action THEN snackbar is not shown()
✅ GIVEN error state WHEN on try again action with failure result THEN error is shown()

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.UnitLoginScreenTest.xml

3 tests were completed in 6s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.UnitLoginScreenTest 3✅ 6s

✅ com.appunite.loudius.UnitLoginScreenTest

✅ whenClickingGrantPermissionInXiaomiDialog_OpenPermissionEditor
✅ whenLoginScreenIsVisible_LoginButtonOpensGithubAuth
✅ whenClickingPermissionGrantedInXiaomiDialog_OpenGithubAuth

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.UnitPullRequestsScreenTest.xml

1 tests were completed in 940ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.UnitPullRequestsScreenTest 1✅ 940ms

✅ com.appunite.loudius.UnitPullRequestsScreenTest

✅ whenResponseIsCorrectThenPullRequestItemIsVisible

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.UnitReviewersScreenTest.xml

3 tests were completed in 919ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.UnitReviewersScreenTest 3✅ 919ms

✅ com.appunite.loudius.UnitReviewersScreenTest

✅ whenClickOnNotifyAndCommentThenNotifyReviewer
✅ whenClickOnNotifyAndDoNotCommentThenShowError
✅ whenResponseIsCorrectThenReviewersAreVisible

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.UnitWalkThroughAppTest.xml

1 tests were completed in 833ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.UnitWalkThroughAppTest 1✅ 833ms

✅ com.appunite.loudius.UnitWalkThroughAppTest

✅ whenLoginScreenIsVisible_LoginButtonOpensGithubAuth

✅ app/build/test-results/testDebugUnitTest/TEST-com.appunite.loudius.util.TestUtilsKtTest.xml

1 tests were completed in 20ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.appunite.loudius.util.TestUtilsKtTest 1✅ 20ms

✅ com.appunite.loudius.util.TestUtilsKtTest

✅ verifyOtpIsGenerated