You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Chapters/SUnit/Cookbook.pillar
+5-11Lines changed: 5 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -374,22 +374,16 @@ In this example the generated cases will be 9. One per each combination of ==opt
374
374
!!! Customising Test
375
375
376
376
In this section, we show that SUnit offers two hooks to define what a test selector is and how to perform the test.
377
-
[[[
378
-
HiExamplesTest class >> classWithExamplesToTest
379
-
^ self
380
-
]]]
381
-
382
-
[[[
383
-
HiExamplesTest class >> isAbstract
384
-
^ self = HiExamplesTest
385
-
]]]
377
+
Imagine that we want to support that class method on a given class returned by ==classWithExamplesToTest== whose selector follow the pattern ==example*== methods are considered at tests.
378
+
We can define method ==testSelectors== as follows:
0 commit comments