After watching Ryan Bates’ screencast on Cucumber, I wanted to start creating my code first through BDD. I used Netbeans 6.5.1 to follow Ryan’s screencast and I found that NetBeans doesn’t recognize the .feature file that you create when you run a Cucumber test. I searched Google for about 3 hours for a plugin, but no such luck! I couldn’t believe it, I thought somebody had to of created a cukes plugin by now. Well, I decided to help the world and of course, myself, by creating a NetBeans plugin that will recognize the .feature files. Here’s a quick view of a .feature file after the plugin has been installed:
I have uploaded the plugin to the NetBeans Plugin site, but you can download it from this link: NetBeans Cucumber Plugin -v 1.0
EDIT: Netbeans has been down for a week or two so we’ve made the download available here: Netbeans Cucumber Plugin
After you download the project navigate to: CucumberFileType / build / org-myorg-cucumberfiletype.nbm
Install the .nbm file with netbeans and your ready to go.
To install the plugin all you have to do is:
- Download it (Duh)
- Open NetBeans and go to Tools -> Plugins
- In the Plugins dialog click on the “Downloaded” tab
- Click “Add Plugins…”
- Browse to where ever you downloaded the .nbm file and click “Open”
- Last, click the “Install” button and you finished.
Hope you like it. Please report any bugs or changes.
Comment, Tweet, Appreciate!