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
Install Node.js.
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.
Navigation
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
or 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. The test file opens in the editor with the cursor placed at the test definition.