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.
Execute failing scenarios of pull request:With right mouse click you have the first two options:
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. 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. 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: Search steps and steps suggestions:You can search the step with the need to leave your feature file, all you need is:
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. |