QuBiT / cucumber-netbeans-plugin

Plugin / Module which allow Syntax Highlighting and many more in NetBeans with .feature Files
MIT License
50 stars 19 forks source link

Feature Request: Right click on feature to run only that feature #13

Closed tmilker closed 14 years ago

tmilker commented 14 years ago

It would be nice if we could right click on either the .feature file in the Files tab or in the Features Navigator to run just that feature with "cucumber features/path/to/new.feature -s". Adding a keybinding to run the currently opened and focused .feature file would also be convenient.

QuBiT commented 14 years ago

nice idea, maybe I'll do it, as soon as I find some time for it ;)

QuBiT commented 14 years ago

Since Version 1.6.5 this is now possible.

You can run your features by

jorahood commented 14 years ago

When I do this I get an exception on Mac OS X:

java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.(UNIXProcess.java:53) at java.lang.ProcessImpl.start(ProcessImpl.java:91) at java.lang.ProcessBuilder.start(ProcessBuilder.java:452) Caused: java.io.IOException: Cannot run program "cmd": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at qubit.cucumber.editor.threads.FeatureThread.run(FeatureThread.java:79) [catch] at java.lang.Thread.run(Thread.java:637)

Seems that it is looking for a "cmd" exe, which would only work on Windows.

QuBiT commented 14 years ago

thats currently true, as I implemented it only for Windows at the moment. I will look into this and add the support for OS X and Linux.

QuBiT commented 14 years ago

I've removed the cmd /C part of the command for non-windows systems and committed these changes. As soon as we know what exactly your table indentation problem is (please check the issue), and we then solved it (if there is one), I'll upload a new version which enables this new functionality.

Cheers

(As the output of Cucumber is redirected to the Output-View of Netbeans, there is currently no coloring (just plain text).)