JetBrains Rider 2018.2 Help

Cucumber.js

Cucumber.js is a test framework for behavior driven JavaScript development. Cucumber.js tests are written in the human-readable Gherkin language and are stored in feature files that have the feature extension. JetBrains Rider integrates with Cucumber.js and recognizes features written in Gherkin so you can run Cucumber,js test right from the IDE.

Before you start

  1. Install Node.js.

  2. Install and enable the Cucumber.js and Gherkin repository plugins on the Plugins page as described in Managing Plugins.

Installing Cucumber.js

  • Open the built-in JetBrains Rider Terminal (Ctrl+Alt+1) and type one of the following commands at the command prompt:
    • npm install cucumber for local installation in your project.

    • npm install -g cucumber for global installation.

    • npm install --save-dev cucumber to install Cucumber.js as a development dependency.

    See also Cucumber.js demo on the Cucumber.js official website.

With JetBrains Rider, you can jump between a file and the related test file. Navigation from a test result in the Test Runner Tab to the test is also supported.

To jump between a file and the related test file

  • Open the file in the editor and choose Go To | Test or Go To | Test Subject on the context menu, or just press N/A.

To jump from a test result to the test

  • Select the test name in the Test Runner tab and choose Jump to Source on the context menu.

    ws_test_jump_to_test
    The test file opens in the editor with the cursor placed at the test definition.

Last modified: 19 October 2018