Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Plugin / Module which allow Syntax Highlighting and many more in NetBeans with .feature Files
Java Ruby
Tag: v1.2.3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
build
nbproject
src/info/cukes/feature
test/unit/src
README.textile
build.xml
license.txt
manifest.mf
screenshot.png

README.textile

Cucumber Features : Netbeans Module (1.2.3)

Install

  1. Download file info-cukes-feature.nbm:
    1. from the build directory using GIT
    2. OR from my modules page on my webpage
    3. OR from the Netbeans Plugins
  2. Open NetBeans and go to Tools → Plugins
  3. In the Plugins dialog click on the “Downloaded” tab
  4. Click “Add Plugins…”
  5. Browse to where ever you downloaded the .nbm file, select it and click “Open”
  6. Last, click on “Install”.

Usage

Create a new empty file with .feature ending and start editing.

OR

Go to File → New File and choose ‘Cucumber’ and ‘FeatureTemplate.feature’

Changing Colors

Since Version 1.2.2 it is possible to customize the colors so that you can use your own preferred ones.

  1. Go to Tools → Options → Miscellaneous
  2. Select “Cucumber Feature Options”
  3. Select your Colors:
    1. press “Choose” of the desired option
    2. select your desired color
    3. press “Okay”
  4. Save them by pressing “Okay”
  5. Restart NetBeans

You have to restart netbeans, since the colors for the module are loaded only once at the start of NetBeans

More customizations like bold or italic will follow soon.

Troubleshooting

I have messed up the colors and now I want to have the default colors

On Windows: Go to C:\Documents and Settings\\.netbeans\\config\Preferences\info\cukes and delete the ‘feature.properties’ file

On Linux: Go to ~/.netbeans//config/Preferences/info/cukes and delete the ‘feature.file’

Restart NetBeans afterwards.

Feature: Installation

Scenario: Try to install new version

Given this module was designed for version
And testet with version
| version |
| 6.5.1 |
| 6.7.RC2 |
| 6.7.RC3 |
And I try to install it
When there is an error
Then I contact the developer and send him the error message.

I get an error …

Go to Issues and open and issue.

I have a question or proposal or …

Write me a message or open an Issue

History

Changes in Version 1.2.3 (17th June 2009)

  • more freedom for the user (less restrictive)
  • added missing keyword
  • last release before NetBeans releases the final version of 6.7 (see Development for more Information)

New in Version 1.2.2 (15th June 2009)

  • Custom Colors (see Changing Colors)

Changes in Version 1.2.1 (13th June 2009)

  • just code changes to optimize and simplify grammer
  • more freedom for the user :)

New in Version 1.2.0 (12th June 2009)

  • Integration into NetBeans (File→New File)
  • Template File
  • Code Folding for Scenario, Background and Examples

New in Version 1.1.9 (11th June 2009)

  • Multiline Strings (PyString)

Next Goals

  • Indentation (currently only available for Feature, not for Scenarios)
  • Tooltips
  • Language Support: currenty English and French(experimental—> can be found in build directory)
  • … propose something … :-)

Language Support

As Cucumber supports multiple languages, I also want to support multiple languages, but as this is not so easy and needs some work, I’ll only support languages which are really needed and requested from other people.

How to request this module supporting a different language

Open an issue with the following topic: “Language REQUEST: EN” where EN is substituted with your requested language. If such a issue allready exists, please do not open a new one, instead write a comment to the existing issue.

You can also provide a list of keywords with translation, which are not listet here and should also be included. (Useful to highlight the Feature Description: As a developer, I want to …, In order to ,…)

if there are more then ? People, where ? is not decided yet, I’ll start translating it.

Development

REMARK: This project is based on the GLF Module which is no longer supported by NetBeans (the package is deprecated in 6.7, but still usable). If the support for this module is completly removed, then this module will no longer work and has to be rewritten using a different technique. If this happens, please be patient, because my spare time is limited and since I only use NetBeans to write my Cucumber Features, I have very little motiviation to reinvent the module, only because NetBeans do not longer support the GLF module in their new version.

This project can be found on GitHub at the following URL:

http://github.com/QuBiT/cucumber-netbeans-plugin

If you wish any additional features, then please contact me.

If you know how to extend this plugin, feel free to fork this project and inform me when you are done, so that I can pull you changes into this project.

If you want to collaborate, contact me also.

Thanks

to all people who are using this plugin/module and tell other people about it.

Contact

  • write me a message
  • open an issue

you can also:

License

Copyright © 2009 Roland Guem

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the “Software”), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.