Skip to content
Permalink
Browse files

Extend test case to hook on instance variables to keep

  • Loading branch information...
guillep committed Jul 30, 2019
1 parent b4cab0f commit d556de2540772e4a21f9a5591be3141c7d41aea4
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/SUnit-Core/TestCase.class.st
@@ -584,7 +584,7 @@ TestCase >> announcer [
{ #category : #private }
TestCase >> cleanUpInstanceVariables [
self class allInstVarNames do: [ :name |
name = 'testSelector' ifFalse: [
(self instanceVariablesToKeep includes: name) ifFalse: [
self instVarNamed: name put: nil ] ]
]

@@ -639,6 +639,11 @@ TestCase >> failureLog [

]

{ #category : #private }
TestCase >> instanceVariablesToKeep [
^ #('testSelector')
]

{ #category : #testing }
TestCase >> isExpectedFailure [
^self expectedFailures includes: testSelector

0 comments on commit d556de2

Please sign in to comment.
You can’t perform that action at this time.