Saturday, February 05, 2011

Kanbanboards V–creating new boards

OK – after the last post of refactoring I now feels great to turn my focus on some new functionality; I want to let the users create new Kanban boards. This involves some new views and controllers stuff, uploading pictures and also changes in the domain model.

I got some valuable feedback from my colleague Joakim Sunden on the real purpose of the Kanban board application / site. I actually never wrote it down. So I’ve updated the first post in the series with the following:

www.kanban-boards.com will be a site where users can upload their Kanban boards for other people to see, vote on and get inspired by. In this way we can share and learn from each other I think and hope.

The creation of this site is documented as my learning process.

On with the show!

Tuesday, February 01, 2011

Customize your SpecFlow templates and more

I got this tip from a non-developer. An intern actually. He’s brilliant though and figured this out by himself, about 3 months after I introduced him to SpecFlow. Thank you Dejen – you’re great!

The fact that this is not documented anywhere just adds to the coolness, but also make the solution a bit hackish. Sorry for that.

As it seems – SpecFlow is storing templates for the feature-files in this folder:

C:\Program Files (x86)\TechTalk\ SpecFlow\ItemTemplates\

I’m using a 64-bit system so your path may not contain the (x86)-part.

Here you’ll find a number of zip-archives that contains the templates. You can modify the EventDefinition- (Hooks) and the StepDefinition-templates and (maybe most common) the Feature-template. All the structure is the same so you can follow it in the same manner as below.