[squeak-dev] The Trunk: SUnit-ul.85.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Mar 27 17:32:46 UTC 2011


Levente Uzonyi uploaded a new version of SUnit to project The Trunk:
http://source.squeak.org/trunk/SUnit-ul.85.mcz

==================== Summary ====================

Name: SUnit-ul.85
Author: ul
Time: 27 March 2011, 7:32:39.281 pm
UUID: 27718a42-1713-1845-ba67-b366abea4765
Ancestors: SUnit-cmm.84

- LongTestCase's default timeout is 10x the timeout of TestCase
- LongTestCase class >> #buildSuite uses #suiteClass instead of TestSuite. It behaves like TestCase if #shouldRun returns true.

=============== Diff against SUnit-cmm.84 ===============

Item was changed:
  ----- Method: LongTestCase class>>buildSuite (in category 'instance creation') -----
  buildSuite
  
+ 	self shouldRun ifTrue: [ ^super buildSuite ].
+ 	^self suiteClass new!
- 	| suite |
- 	suite := TestSuite new.
- 	self shouldRun ifTrue: [
- 		self addToSuiteFromSelectors: suite].
- 	^suite!

Item was changed:
  ----- Method: LongTestCase class>>isAbstract (in category 'testing') -----
  isAbstract
  	"Override to true if a TestCase subclass is Abstract and should not have
  	TestCase instances built from it"
  
+ 	^self name == #LongTestCase
- 	^self name = #LongTestCase
  			!

Item was added:
+ ----- Method: LongTestCase>>defaultTimeout (in category 'as yet unclassified') -----
+ defaultTimeout
+ 	"Answer the default timeout to use for tests in this test case. The timeout is a value in seconds."
+ 
+ 	^super defaultTimeout * 10!




More information about the Squeak-dev mailing list