23 October 2009
Use AutoHotKey to enable easy BDD naming style
When writing BDD specifications I prefer to use StoryQ. But on smaller projects I often revert to using more traditional TDD with a dash of BDD naming style:
But typing the underscores soon become tiresome so I use AutoHotKey and a script by JP Boodhoo to auto-insert an underscore every time I hit space.
If you would like to try this out, do the following:
Download BDD naming mode script and icons: AutoHotKeyBDDNamingMode.zip
8 public class MessageBusTests
9 {
10 public void Should_send_message_when_event_occur()
11 {
12 // SUT code
13 }
14 }
But typing the underscores soon become tiresome so I use AutoHotKey and a script by JP Boodhoo to auto-insert an underscore every time I hit space.
If you would like to try this out, do the following:
- Install AutoHotKey
- Copy the file "BDD naming mode.ahk" to your start menu folder along with the two icon files from the zip file.
- Double click the .ahk file to enable the script or restart your computer.
Download BDD naming mode script and icons: AutoHotKeyBDDNamingMode.zip
Labels: AutoHotKey, BDD
Subscribe to Posts [Atom]

