Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0007270 [Squeak] SUnit major always 01-16-09 04:09 01-16-09 04:09
Reporter wiz View Status public  
Assigned To
Priority low Resolution open  
Status new   Product Version
Summary 0007270: How testable is squeak code?
Description This is not a bug report so much as a request for infomation.

Does the code presently in squeak meet the criteria for being testable?

Additional Information People have always said that Squeak needs more test covarage.

How will it get that coverage?
Who will step forward to help?

Cleaning up other peoples messes is not a contribution anyone
Yet confidence in our own software is something we dearly wish.

So how do we address this?

Recently while having this issue in the back of my mind I came across
some google code talk videos by Misko Hevery.
There are four of them on youtube under the theme of Clean Code talks.

The scales started to fall from my eyes.
According to Hevery code needs to be written to be testable first.
And he gives some very good criteria for detemining if code
can be sunit tested fruitfully and easily.

And he defines a whole bunch of terminology that I have not heard before
on squeak lists. Once that is absorbed though his ideas make a lot of sense. And just as you can test code for code smells, you can test code
for testability smells.

So how would squeak measure up to those tests.

(Hint Global state is an enemy of testing and Squeak has a Preference
class that has tons of global state.)

How many of the unit tests are actually unit tests?
How many of them are reproducable?
How many of them clean up properly rather than change global state?

So what tests and probes can we create to gather information on this.
Very little can be fixed until it can be measured.
Shedding light on the current state of affairs is the first step and
what this report wishes to see addressed.
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
01-16-09 04:09 wiz New Issue

Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
27 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker