-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(am): fix parsing of failed test runs
should emit TestRunEnded with time if applicable and attach a shortMsg to the failure reason
- Loading branch information
Showing
6 changed files
with
218 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
TestRunStartedEvent(testCount=9) | ||
TestStarted(id=TestIdentifier(className=kz.kolesa.tests.advertdetails.AddAdvertToFavoritesTest, testName=addAdvertToFavorite)) | ||
TestEnded(id=TestIdentifier(className=kz.kolesa.tests.advertdetails.AddAdvertToFavoritesTest, testName=addAdvertToFavorite), metrics={}) | ||
TestStarted(id=TestIdentifier(className=kz.kolesa.tests.advertdetails.AdvertDetailsTest, testName=checkHeaderIsShown)) | ||
TestEnded(id=TestIdentifier(className=kz.kolesa.tests.advertdetails.AdvertDetailsTest, testName=checkHeaderIsShown), metrics={}) | ||
TestStarted(id=TestIdentifier(className=kz.kolesa.tests.advertdetails.AdvertDetailsTest, testName=checkCommentButtonIsShown)) | ||
TestEnded(id=TestIdentifier(className=kz.kolesa.tests.advertdetails.AdvertDetailsTest, testName=checkCommentButtonIsShown), metrics={}) | ||
TestStarted(id=TestIdentifier(className=kz.kolesa.tests.advertdetails.AdvertDetailsTest, testName=checkUnAuthClickOnMessageButton)) | ||
TestEnded(id=TestIdentifier(className=kz.kolesa.tests.advertdetails.AdvertDetailsTest, testName=checkUnAuthClickOnMessageButton), metrics={}) | ||
TestStarted(id=TestIdentifier(className=kz.kolesa.tests.advertdetails.AdvertDetailsTest, testName=checkEmptyPhotoViewIsShown)) | ||
TestEnded(id=TestIdentifier(className=kz.kolesa.tests.advertdetails.AdvertDetailsTest, testName=checkEmptyPhotoViewIsShown), metrics={}) | ||
TestStarted(id=TestIdentifier(className=kz.kolesa.tests.report.ReportBugTest, testName=emptyMessageFieldTest)) | ||
TestEnded(id=TestIdentifier(className=kz.kolesa.tests.report.ReportBugTest, testName=emptyMessageFieldTest), metrics={}) | ||
TestStarted(id=TestIdentifier(className=kz.kolesa.tests.report.ReportBugTest, testName=sendReportTest)) | ||
TestEnded(id=TestIdentifier(className=kz.kolesa.tests.report.ReportBugTest, testName=sendReportTest), metrics={}) | ||
TestStarted(id=TestIdentifier(className=kz.kolesa.tests.login.SignInEmptyDataTest, testName=signInWithEmptyPassword[0])) | ||
TestEnded(id=TestIdentifier(className=kz.kolesa.tests.login.SignInEmptyDataTest, testName=signInWithEmptyPassword[0]), metrics={}) | ||
TestStarted(id=TestIdentifier(className=kz.kolesa.tests.login.SignInEmptyDataTest, testName=signInWithEmptyPassword[1])) | ||
TestFailed(id=TestIdentifier(className=kz.kolesa.tests.login.SignInEmptyDataTest, testName=signInWithEmptyPassword[1]), stackTrace=java.lang.NullPointerException: Attempt to read from field 'java.lang.Object kz.library.network.model.Response.result' on a null object reference | ||
at kz.library.auth.domain.AuthInteractor.login(AuthInteractor.kt:43) | ||
at kz.library.auth.presentation.AuthViewModel$onLoginClicked$1$invokeSuspend$$inlined$let$lambda$1.invokeSuspend(AuthViewModel.kt:152) | ||
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) | ||
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56) | ||
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) | ||
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738) | ||
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) | ||
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)) | ||
TestEnded(id=TestIdentifier(className=kz.kolesa.tests.login.SignInEmptyDataTest, testName=signInWithEmptyPassword[1]), metrics={}) | ||
TestRunFailed(error=Process crashed.) | ||
TestRunEnded(elapsedTimeMillis=0, metrics={}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.advertdetails.AddAdvertToFavoritesTest | ||
INSTRUMENTATION_STATUS: current=1 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream= | ||
kz.kolesa.tests.advertdetails.AddAdvertToFavoritesTest: | ||
INSTRUMENTATION_STATUS: test=addAdvertToFavorite | ||
INSTRUMENTATION_STATUS_CODE: 1 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.advertdetails.AddAdvertToFavoritesTest | ||
INSTRUMENTATION_STATUS: current=1 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream=. | ||
INSTRUMENTATION_STATUS: test=addAdvertToFavorite | ||
INSTRUMENTATION_STATUS_CODE: 0 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.advertdetails.AdvertDetailsTest | ||
INSTRUMENTATION_STATUS: current=2 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream= | ||
kz.kolesa.tests.advertdetails.AdvertDetailsTest: | ||
INSTRUMENTATION_STATUS: test=checkHeaderIsShown | ||
INSTRUMENTATION_STATUS_CODE: 1 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.advertdetails.AdvertDetailsTest | ||
INSTRUMENTATION_STATUS: current=2 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream=. | ||
INSTRUMENTATION_STATUS: test=checkHeaderIsShown | ||
INSTRUMENTATION_STATUS_CODE: 0 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.advertdetails.AdvertDetailsTest | ||
INSTRUMENTATION_STATUS: current=3 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream= | ||
INSTRUMENTATION_STATUS: test=checkCommentButtonIsShown | ||
INSTRUMENTATION_STATUS_CODE: 1 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.advertdetails.AdvertDetailsTest | ||
INSTRUMENTATION_STATUS: current=3 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream=. | ||
INSTRUMENTATION_STATUS: test=checkCommentButtonIsShown | ||
INSTRUMENTATION_STATUS_CODE: 0 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.advertdetails.AdvertDetailsTest | ||
INSTRUMENTATION_STATUS: current=4 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream= | ||
INSTRUMENTATION_STATUS: test=checkUnAuthClickOnMessageButton | ||
INSTRUMENTATION_STATUS_CODE: 1 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.advertdetails.AdvertDetailsTest | ||
INSTRUMENTATION_STATUS: current=4 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream=. | ||
INSTRUMENTATION_STATUS: test=checkUnAuthClickOnMessageButton | ||
INSTRUMENTATION_STATUS_CODE: 0 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.advertdetails.AdvertDetailsTest | ||
INSTRUMENTATION_STATUS: current=5 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream= | ||
INSTRUMENTATION_STATUS: test=checkEmptyPhotoViewIsShown | ||
INSTRUMENTATION_STATUS_CODE: 1 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.advertdetails.AdvertDetailsTest | ||
INSTRUMENTATION_STATUS: current=5 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream=. | ||
INSTRUMENTATION_STATUS: test=checkEmptyPhotoViewIsShown | ||
INSTRUMENTATION_STATUS_CODE: 0 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.report.ReportBugTest | ||
INSTRUMENTATION_STATUS: current=6 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream= | ||
kz.kolesa.tests.report.ReportBugTest: | ||
INSTRUMENTATION_STATUS: test=emptyMessageFieldTest | ||
INSTRUMENTATION_STATUS_CODE: 1 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.report.ReportBugTest | ||
INSTRUMENTATION_STATUS: current=6 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream=. | ||
INSTRUMENTATION_STATUS: test=emptyMessageFieldTest | ||
INSTRUMENTATION_STATUS_CODE: 0 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.report.ReportBugTest | ||
INSTRUMENTATION_STATUS: current=7 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream= | ||
INSTRUMENTATION_STATUS: test=sendReportTest | ||
INSTRUMENTATION_STATUS_CODE: 1 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.report.ReportBugTest | ||
INSTRUMENTATION_STATUS: current=7 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream=. | ||
INSTRUMENTATION_STATUS: test=sendReportTest | ||
INSTRUMENTATION_STATUS_CODE: 0 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.login.SignInEmptyDataTest | ||
INSTRUMENTATION_STATUS: current=8 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream= | ||
kz.kolesa.tests.login.SignInEmptyDataTest: | ||
INSTRUMENTATION_STATUS: test=signInWithEmptyPassword[0] | ||
INSTRUMENTATION_STATUS_CODE: 1 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.login.SignInEmptyDataTest | ||
INSTRUMENTATION_STATUS: current=8 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream=. | ||
INSTRUMENTATION_STATUS: test=signInWithEmptyPassword[0] | ||
INSTRUMENTATION_STATUS_CODE: 0 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.login.SignInEmptyDataTest | ||
INSTRUMENTATION_STATUS: current=9 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stream= | ||
INSTRUMENTATION_STATUS: test=signInWithEmptyPassword[1] | ||
INSTRUMENTATION_STATUS_CODE: 1 | ||
INSTRUMENTATION_STATUS: class=kz.kolesa.tests.login.SignInEmptyDataTest | ||
INSTRUMENTATION_STATUS: current=9 | ||
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner | ||
INSTRUMENTATION_STATUS: numtests=9 | ||
INSTRUMENTATION_STATUS: stack=java.lang.NullPointerException: Attempt to read from field 'java.lang.Object kz.library.network.model.Response.result' on a null object reference | ||
at kz.library.auth.domain.AuthInteractor.login(AuthInteractor.kt:43) | ||
at kz.library.auth.presentation.AuthViewModel$onLoginClicked$1$invokeSuspend$$inlined$let$lambda$1.invokeSuspend(AuthViewModel.kt:152) | ||
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) | ||
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56) | ||
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) | ||
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738) | ||
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) | ||
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) | ||
INSTRUMENTATION_STATUS: stream= | ||
Process crashed while executing signInWithEmptyPassword[1](kz.kolesa.tests.login.SignInEmptyDataTest): | ||
java.lang.NullPointerException: Attempt to read from field 'java.lang.Object kz.library.network.model.Response.result' on a null object reference | ||
at kz.library.auth.domain.AuthInteractor.login(AuthInteractor.kt:43) | ||
at kz.library.auth.presentation.AuthViewModel$onLoginClicked$1$invokeSuspend$$inlined$let$lambda$1.invokeSuspend(AuthViewModel.kt:152) | ||
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) | ||
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56) | ||
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) | ||
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738) | ||
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) | ||
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) | ||
INSTRUMENTATION_STATUS: test=signInWithEmptyPassword[1] | ||
INSTRUMENTATION_STATUS_CODE: -2 | ||
INSTRUMENTATION_RESULT: shortMsg=Process crashed. | ||
INSTRUMENTATION_CODE: 0 |