The Trunk: SUnit-ul.85.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: SUnit-ul.85.mcz

commits-2
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!