Skip to content

Commit

Permalink
try taking screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Brichau committed Jan 27, 2024
1 parent 4c828a4 commit 2c008c6
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
private
performTest

^ [ super performTest ] on: TestFailure , Error do: [ :exceptionTest |
[ self takeScreenshot ] on: Error do: [ :errorScreenshot |
Transcript
show: ('Could not take screenshot in {1}: {2}' format: {
self asString.
errorScreenshot messageText });
cr ].
exceptionTest pass ]

0 comments on commit 2c008c6

Please sign in to comment.