Skip to content

Commit e764c47

Browse files
committed
Adds running of examples to the screenshot script
1 parent e641b03 commit e764c47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/prepare_image.st

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Take a screenshot
3333

3434
"First, ensure that the method is fully compiled and the examples are run"
3535
(Smalltalk at: #BPSearchCollection) recompile: #binarySearch:.
36+
((Smalltalk at: #BPSearchCollection)>>#binarySearch:) bpExamples do: [:e | e isActive: true].
37+
BPActiveExamples value runActiveExamples.
3638

3739
"Second, set up the stage and take the screenshot"
3840
browserWindow := (ToolSet default browse: (Smalltalk at: #BPSearchCollection) selector: #binarySearch:) containingWindow.

0 commit comments

Comments
 (0)