=== Top of the Swiki === Attachments ===

Kent Beck's SUnits Testing Framework

Roger Whitney wrote to the list on Mon, 24 Aug 2000


I have attached 4 change sets for what I call SUnit 2.7.1. (I tried to upload them to this Swiki but failed with MSIE 5.0 and Windows 2000, there was no error message or warning -- Andreas Kuckartz) This is CampSmalltalk 2.7 with the following changes:

  1. List pane selection now works in the morphic version of TestRunner. These are the changes done to SUnit 2.6 at UIUC earlier this summer.
  2. Class category names are modified for better package browser support. Category names are SUnit-

I have tested this version of SUnit on Squeak 2.8 on a Mac. Some odd behavior still remains on the mvc version of TestRunner. Debug windows open up behind instead of in front of the TestRunner window.

Paul McDonough earlier set out a version of SUnit 2.6.
The four change sets are to be loaded in this order:
  1. SUnitPreload
  2. SUnit
  3. SUnitUI
  4. (optional) SUnitTests

SUnit is started via



Paul McDonough wrote to the list on Mon, 21 Aug 2000


It looks like the version of Squeak SUnit included in the 2.9a update stream is rather out of date. I think it's the same version we started with to build an SUnit port suitable for Camp Smalltalk. Since then, there have been (I think) at least 3 passes at improving SUnit/Squeak:

We could benefit by including these improvements, if SUnit is to be part of the core release stream. A recent version (including UI access to the tool) is attached. Four change sets, to be loaded in this order:
  1. SUnitPreload
  2. SUnit
  3. SUnitUI
  4. (optional) SUnitTests

Alternatively, someone could set up with the CS gang to keep in sync, as they will likely continue to work on the SUnit port from time to time.



Robert Hirschfeld on July 6, 2000 wrote to the Squeak mailing list (slightly edited):


"I started the port of SUnit about a year ago - for Squeak only. Due to the effort of a CampSmalltalk project (led by Samuel S. Shuster) to unify the many of the SUnit ports out there and to make the same framework available for most of the Smalltalk systems in use today, I discontinued this port. The best place to get the most recent version of SUnit is
http://ansi-st-tests.sourceforge.net/SUnit.html
or
http://wiki.cs.uiuc.edu/CampSmalltalk/ANSI+Test+Suite
Also, the CampSmalltalk mailing list (CampSmalltalk@mojowire.com) discusses implementation issues and enhancements of SUnit."



[discontinued]
The SUnits Testing Framework by Kent Beck and Erich Gamma has been ported to Squeak by Robert Hirschfeld of Windward Solutions:

http://www.prakinf.tu-ilmenau.de/~hirsch/Projects/Squeak/SUnit/SUnit.html
(or
http://www.windwardsolutions.com/People/Hirschfeld/Squeak/Squeak.html - if that still works)



References

Simple Smalltalk Testing: With Patterns
[Kent Beck´s original Smalltalk testing paper]
http://www.xprogramming.com/testfram.htm

SUnit Camp Smalltalk
[the official SUnit repository]
http://ansi-st-tests.sourceforge.net/SUnit.html

SUnit Camp Smalltalk
[replaced by the previous sourceforge site,
but contains other interesting links which
are not available on the new site]
http://wiki.cs.uiuc.edu/CampSmalltalk/SUnit+Camp+Smalltalk

Page created by Andreas Kuckartz