Jul 02 2006
Manual for sSpec
I finished the first cut of the sSpec manual. It’s sparse in places and needs some fleshing out. Feedback appreciated.
Tags: bdd smalltalk sspecJul 02 2006
I finished the first cut of the sSpec manual. It’s sparse in places and needs some fleshing out. Feedback appreciated.
Tags: bdd smalltalk sspecJul 02 2006
Version 0.11 of sSpec just got published. This one has much improved failure messages. Thanks to the folks on the Cincom smalltalk irc channel for their help, especially rh & jarober.
For those without a pub Store account.. get one :) or for now.. here’s the parcel files.
Tags: bdd smalltalk sspecJul 02 2006
I just pushed version 0.10 of sSpec to the Cincom public store. It includes several small tweaks as well as support for ordering mock expectations.
A first pass at a reference manual is forthcoming shortly.
Tags: bdd smalltalk sspecComments Off
Jul 01 2006
As the title says, sSpec is ready to be used. At the moment it’s for VisualWorks only (tested on 7.4 and 7.4.1) and is in the Cincom Public Store Repository. Load the bundle “SSpec”.
Documentation is on the way as well. For starters here’s a quick reference card.
For now most of the information on rspec.rubyforge.org is directly applicable.
Tags: bdd smalltalk sspecJun 07 2006
sSpec is up & running under VisualWorks!
DO-ITing
TextSpecRunner verbose runAll: (OrderedCollection with: SampleContextWithFailingSpec new with: SampleContext new)
results in the following in the Transcript:
sample context with failing spec should fail (FAILED 1) should pass sample context should be spec one should be spec two 2 contexts, 4 specs, 1 failures 0.044 seconds 1) ExpectationNotMetError in ' sample context with failing spec should fail' should be even SSpec.ShouldHelper(SSpec.ShouldBase)>>failWithMessage:
The code for the example specs is trivial, for example:
Smalltalk.SSpec defineClass: #SampleContextWithFailingSpec
superclass: #{SSpec.SpecContext}
indexedType: #none
private: false
instanceVariableNames: ''
classInstanceVariableNames: ''
imports: ''
category: 'SSpec-Structural Tests'!
!SSpec.SampleContextWithFailingSpec methodsFor: 'specs'!
shouldFail
5 should be even!
shouldPass
5 should be odd! !
Sure, a few things need tweaking… and there needs to be a gui based runner, ability to debug a failing spec, etc. ( I want to hook into the sUnit browser integration :) )… but the core is up & running nicely. With a builtin rSpec-like Mock framework as well.
Tags: bdd smalltalk sspec
Comments Off
Feb 14 2006
You can get sSpec for Ambrai Smalltalk from the Dark Dog Software site. Reference and tutorial documents will be available shortly, as will versions for other Smalltalk dialects. Full sUnit tests are provided.
Tags: smalltalk sspecFeb 13 2006
Very soon I’ll be posting RC1 of v1.0 of sSpec, currently only directly supported for Ambrai smalltalk.
Watch for an announcement regarding it’s general availability, as well as more general information on my latest thoughts on BDD.
Tags: smalltalk sspecFeb 05 2006
If anyone reading this is playing with Ambrai Smalltalk and would like to test-drive my new Behaviour-Driven Development framework for Smalltalk, let me know!
dastels@daveastels.com
Tags: smalltalk sspecJan 27 2006
Over the past week or so I’ve been experimenting with Ambrai Smalltalk: a native OS X Smalltalk.
I’ve tweaked up the sUnit that comes with it and am in the process of porting rSpec to Smalltalk. Pretty much all that’s left to do is a runner.
Dave Chelimsky has been doing some interesting experiments with using a helper class for implementing expectations. More on that later.
Also, Nancy and I have been working on a native Cocoa runner for rSpec on OS X.
Tags: apple rspec sspec