PyCharm 2024.2 Help

Create .feature files

Prerequisite

Behave should be downloaded and installed on your computer!

To install Behave, follow these steps:

  1. Open the Settings dialog Ctrl+Alt+S, select Project | Python Interpreter.

  2. Add the behave package, as described in the section Install, uninstall, and upgrade 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. From the context menu of the target directory, choose New | Gherkin feature file, and specify the filename.

  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.

Last modified: 17 June 2024