I just realized that I saved using my initials and not my name. I can  
resave it if necessary.

The MC comment:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
ISSUE #426:

The class TestCase is extended with few methods that enables a simple  
code coverage. It essentially checks for method calls in the test, and  
compare them with the set of defined methods.

For example,
OrderedCollectionTest coverageAsString
==> 'OrderedCollectionTest covers 60% of OrderedCollection'

to get these results for all collections:
(((Smalltalk allClasses select: [:cls | cls category beginsWith:  
'CollectionsTests-']) copyWithoutAll: {TextAndTextStreamTest .  
TextLineEndingsTest}) collect: [:cls | cls coverageAsString]) do:  
[:str | Transcript show: str; cr]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

The printout of the last statement given in the comment is:

ArrayTest covers 26% of Array
AssociationTest covers 27% of Association
BagTest covers 72% of Bag
Base64MimeConverterTest covers 0% of Base64MimeConverter
CharacterSetTest covers 13% of CharacterSet
CharacterTest covers 3% of Character
CollectionTest covers 14% of Collection
DictionaryTest covers 33% of Dictionary
FloatArrayTest covers 22% of FloatArray
HeapTest covers 43% of Heap
IdentityBagTest covers 0% of IdentityBag
IntervalTest covers 59% of Interval
LinkedListTest covers 71% of LinkedList
MatrixTest covers 10% of Matrix
OrderedCollectionTest covers 60% of OrderedCollection
ReadStreamTest covers 18% of ReadStream
ReadWriteStreamTest covers 13% of ReadWriteStream
RunArrayTest covers 25% of RunArray
SetTest covers 41% of Set
SharedQueue2Test covers 44% of SharedQueue2
SkipListTest covers 48% of SkipList
SortedCollectionTest covers 58% of SortedCollection
StackTest covers 73% of Stack
StringTest covers 10% of String
SymbolTest covers 25% of Symbol
TextAlignmentTest covers 0% of TextAlignment
TextEmphasisTest covers 9% of TextEmphasis
TextFontChangeTest covers 33% of TextFontChange
TextFontReferenceTest covers 11% of TextFontReference
TextKernTest covers 8% of TextKern
TranscriptTest covers 9% of Transcript
WeakIdentityKeyDictionaryTest covers 0% of WeakIdentityKeyDictionary
WideCharacterSetTest covers 38% of WideCharacterSet
WideStringTest covers 6% of WideString
WriteStreamTest covers 14% of WriteStream


The champions are StackTest, BagTest, and OrderedCollectionTest. Good  
job!

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to