Skip to content

Commit

Permalink
Silent fail (#350)
Browse files Browse the repository at this point in the history
* added throw to failed screenshot tests

* added description with throw

---------

Co-authored-by: Nick Rotonda <rotonda.7@osu.edu>
  • Loading branch information
nrotonda and Nick Rotonda authored Feb 5, 2024
1 parent 7c98bbe commit eddc7d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shot-android/src/main/java/com/karumi/shot/ScreenshotTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ interface ScreenshotTest {
.record()
} catch (t: Throwable) {
Log.e("Shot", "Exception captured while taking screenshot for snapshot with name $snapshotName", t)
throw IllegalStateException("Exception occurred while taking screenshot for snapshot with name $snapshotName", t)
}
}

Expand All @@ -204,6 +205,7 @@ interface ScreenshotTest {
.record()
} catch (t: Throwable) {
Log.e("Shot", "Exception captured while taking screenshot for snapshot with name $snapshotName", t)
throw IllegalStateException("Exception occurred while taking screenshot for snapshot with name $snapshotName", t)
}
}

Expand Down

0 comments on commit eddc7d0

Please sign in to comment.