Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CDMtestRunnerNew to Visual Studio Code? Get it now.
CDMtestRunner

CDMtestRunner

Abdelhak NEZZARI

|
97 installs
| (0) | Free
run tests from gherkin files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Why you need CDMtestRunner:

This is extension comes with a very usefull functionalities that can save your time in executing gherking scenarios or searching the steps.

  • This extension allows you to execute the features files or a specific scenario, directely from the feature file without the need to change your launch.json file.
  • In addition, it allows to execute the failing scenarios or features files from the pull request, in the first step, it will connect remotely to you git pull repository, and retrieve the failing scenario and run them locally in your machine, without the need to do that manually, it will save a lot of time, in searching those scenarios manually in order to run them. The execution of the scenarios can be done via right mouse click.
  • Another very important functionality of the extension, is the possibility to search the steps inside the scenario that you are writing, you need to types some key words, and by typing just ?, it will find all the steps that are maching the typed key words, the list of prposed steps are ordered according to the number of words that are maching your searching key words.
  • On the top of that, if you are in new line to write a new step and you want find the suitable step, you have only to type ?, this will scan all existing steps, and it will collect the statistics about the next step that are the most used, and it will propose them o you in descending order of the steps that are mostely used.

Execute failing scenarios of pull request:

With right mouse click you have the first two options:

  • "Run Failed Features (Pull Request)": Connect to the pull request to get and run all failing feature files.

  • "Run Failed Scenarios (Pull Request)": Connect to the pull request to get and run all failing scenarios.

For this two options, the failed scenarios need to be detected by the pipelineutilities and stored in the pull request, in addition you need to have connection to the pull request using the token. You need to use the pipelineutilities which is a WDIO extension.

You need to connect to your github by using the token credentials, which you will specify in the launch.json file, this file contains various parameters that you can specify to configure your test runs. When you select the right mouse click option, the extension automatically updates the feature file to be executed with the one corresponding to your selection.

picture

Execute tests from feature files:

You have the option to execute your tests directly from the feature file by performing a right mouse click:

"Run Feature": Run the complete feature file which you have opened or have the cursor on, you can also run from the feature files tree folders.

"Run From Current Scenario": Run from the feature file where you position the cursor until the end of feature file.

"Run Scenario": Run the scenario by right mouse menu, you need to position the mouse at the title of scenario.

picture

You can also run your feature file or a specific Gherkin scenario by clicking on the link that underlines the word "Feature:" at the start of the feature file, or the link that underlines each scenario in your feature file, as shown in the following picture:

alt text

Search steps and steps suggestions:

You can search the step with the need to leave your feature file, all you need is:

  • In new line, you type the keyboard key '?', it will prpose you a list of steps ordered descendingly according to their usage after the previous step.

picture

  • In the line of the step you enter some keywords of step you are looking for, like 'click button', and you type '?', it will search all the steps that contains the key words you typed first, and prpose you a list of steps ordered by theirs usages. picture

Prerequisites:

To proceed, please ensure that your Visual Studio Code (VSCode) is updated to at least version "1.79.2".

You need the tool: pipelineutilities to rerun the failing scenarios of the pull request.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft