Jul 02 2006

Manual for sSpec

admin @ 8:55 pm

I finished the first cut of the sSpec manual. It’s sparse in places and needs some fleshing out. Feedback appreciated.

Tags: 

Jul 02 2006

Another Push of sSpec

admin @ 7:32 pm

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: 

Jul 02 2006

New version of sSpec

admin @ 3:19 pm

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: 

Jul 01 2006

sSpec is ready for use

admin @ 2:37 pm

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: 

Jun 07 2006

It’s Alive!!!

admin @ 12:23 am

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: 


Feb 14 2006

sSpec 1.0 RC1 released

admin @ 2:18 am

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: 

Feb 13 2006

BDD for Smalltalk

admin @ 12:49 am

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: 

Feb 05 2006

BDD in Ambrai Smalltalk

admin @ 3:15 am

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: 

Jan 27 2006

Developments in Spec-land

admin @ 1:53 am

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: