PyCharm 2017.1 Help

Creating .feature Files

This feature is supported in the Professional edition only.

Prerequisite

Behave or Lettuce should be downloaded and installed on your computer!

To install Behave or Lettuce, follow these steps:

  1. Open the project structure.
  2. Add the behave or lettuce package, as described in the section Installing, Uninstalling and Upgrading Packages.

Creating feature files

To create a feature file

  1. In the Project tool window, right-click a directory, where feature files should be created.
  2. On the context menu of the target directory, choose New | Gherkin feature file, and specify the file name.
  3. In the feature file, type your scenario. Since there are no step definitions, the steps will be highlighted as unresolved.
  4. Create step definitions.

See Also

Last modified: 26 July 2017