Hi all,If anyone is interested, I have started writing a Cucumber JVM plugin for Eclipse.
Hi all,If anyone is interested, I have started writing a Cucumber JVM plugin for Eclipse.It currently provides:- Basic syntax highlighting for .feature files- Step definition Auto-complete in .feature files- Right-click Run-As for .feature filesThe update site is: http://mrpotes.github.com/cukes-jvm-eclipse-plugin/Cheers,
James
Very cool!! Sorry for the silly question, but how would I install this ?
Can you also translation of colors from ANSI colors to whatever Eclipse console uses for colors?
Cheers,James--
Hi all,If anyone is interested, I have started writing a Cucumber JVM plugin for Eclipse.It currently provides:- Basic syntax highlighting for .feature files- Step definition Auto-complete in .feature files- Right-click Run-As for .feature files
On Tue, Aug 21, 2012 at 10:23 PM, MrPotes <m...@potes.org.uk> wrote:
>
>
> On Monday, 20 August 2012 22:54:39 UTC+1, MrPotes wrote:
>>
>> Hi all,
>>
>> If anyone is interested, I have started writing a Cucumber JVM plugin for
>> Eclipse.
>>
>> It currently provides:
>> - Basic syntax highlighting for .feature files
>> - Step definition Auto-complete in .feature files
>> - Right-click Run-As for .feature files
>
>
> I've found the the Right-click run-as isn't working in Eclipse 4.2. It works
> (at least for me) in Eclipse 3.7, I will try to update when I know what
> versions it works in.
>
> Aslak, I'll try and post some screenshots soon. Currently the i18n doesn't
> work (English only for now) - I'd like to get that to work, but haven't yet
> if/how I can use the existing cucumber stuff for working out language, as I
> start from the java step definitions rather than from a .feature file.
"I start from" does that mean you are triggering a run from a java
step definition file?
If that's the case I would strongly recommend you remove this feature,
as it seems to encourage feature-coupled steps:
https://github.com/cucumber/cucumber/wiki/Feature-Coupled-Steps-(Antipattern)
Step definitions are meant to be reusable across many scenarios in
many feature files. It doesn't make sense to run from a stepdef class.
> There
> are a couple of questions I could do with some help with:
>
> - Are the language annotations generated?
Yes they are:
https://github.com/cucumber/cucumber-jvm/blob/v1.0.14/java/pom.xml#L55-91
> - Can I cross languages, for example can I use step defined as
> @cucumber.annotation.fr.Et("...") in an English .feature file following a
> Given statement as an And step?
Non tu ne can not :-) The gherkin parser would treat this as a syntax error.
Gherkin has one parser for each i18n language. It uses En by default,
but this can be overridden with a comment in the header of the
.feature file:
# language: fr
If your plugin depends on the gherkin jar you should be able to use
the I18n class at runtime to figure out keywords for various
languages. It's nice to avoid code generation when possible.
> - (not quite related, but...) are there any licence restrictions on the
> Cucumber images/icons, or can I use them, particularly the cukes.info
> favicon?
I don't think I have explicitly licensed the images, but I intend to
license them under creative-commons. Just go ahead and use what you
can find. Maybe one day I'll create a "logos and icons" page where
it's easier to find.
Keep up the good work!
On Monday, August 20, 2012 5:54:39 PM UTC-4, MrPotes wrote:
> Hi all,
>
>
> If anyone is interested, I have started writing a Cucumber JVM plugin for Eclipse.
>
>
> It currently provides:
> - Basic syntax highlighting for .feature files
> - Step definition Auto-complete in .feature files
> - Right-click Run-As for .feature files
>
>
> The update site is: http://mrpotes.github.com/cukes-jvm-eclipse-plugin/
>
>
> Cheers,
> James
Perhaps we could join forces: https://github.com/matthewpietal/Eclipse-Plugin-for-Cucumber
I have a few bugs to work out and some code to cleanup but seems we are on the same path.
On Wed, Aug 29, 2012 at 12:15 PM, Jeffrey Cameron
<jeffrey...@gmail.com> wrote:
> I have taken a look at both and I think your plugin is a bit more functional
> right now Matt, at least in Juno (4.2) where I'm working.
>
> Any thoughts to writing something that would auto format the tables?
If you implement table formatting, I would recommend doing it so that
numbers are right-adjusted and text is left-adjusted. That makes it
easier to read:
https://gist.github.com/3511091
Aslak
Is this the update site?I have install the plugin (3.0.0.20120706) on the following Eclipse version:The syntax highlight is working.But rule hinting with ctrl+space does not seem to react.Is there anything I have to config and tell eclipse where the feature files are located?thanks a lotLucplugin (3.0.0.20120706)Eclipse Java EE IDE for Web DevelopersVersion: Juno ReleaseBuild id: 20120614-1722
On Friday, September 14, 2012 7:38:44 AM UTC-4, Simple tester wrote:Hi James,This plugin is something we were looking around for !! Great idea, I can't seem to find the update site.Could you please help.ThanksSimpletester
Hi Guilherme,
The update site is just a github pages view of the gh-pages branch of the repository. You can download them direct from the github ui if your having problems with your eclipse.
Alternatively you should be able to retry - to have got as far as downloading the jar file you quote, eclipse must have already downloaded one XML file and the (eclipse) feature jar file.
Cheers
James
--