Optional Recommended Software - vanderbilt-redcap/redcap_cypress GitHub Wiki

VS Code

https://code.visualstudio.com/

Supports Gherkin and JavaScript syntax.

Recommended Extension

Cucumber:

Screen Shot 2024-11-08 at 11 08 04 AM

Prerequisite: Assuming starting point of redcap_cypress_docker folder:

Screen Shot 2024-11-08 at 10 46 18 AM

They key settings for picking up Step Definitions:

      "cucumber.features": [       
        "redcap_cypress/redcap_rsvc/Feature Tests/**/*.feature", //These are the RSVC features
        "redcap_cypress/cypress/features/*.feature" //Standard feature folder
      ],
      "cucumber.glue": [
        "redcap_cypress/node_modules/rctf/step_definitions/*.js", //This is where the step definitions are
        "redcap_cypress/node_modules/rctf/step_definitions/support/*.js", // This picks up the parameter types - VERY important
       ],

Overall, here is a recommended settings.json

{
  "workbench.colorCustomizations": {
    // "activityBar.background": "#aaa",
    // "sideBar.background": "#fbfbfb",
    // "editorError.foreground":   "#ff000088",
    // "editorWarning.foreground": "#ff000088",
    // "editorWarning.background": "#fff",
    // "editorInfo.foreground":    "#ff000088",
  },  
  "cucumber.features": [       
      "redcap_cypress/redcap_rsvc/Feature Tests/**/*.feature",
      "redcap_cypress/cypress/features/*.feature"
    ],
    "cucumber.glue": [
      "redcap_cypress/node_modules/rctf/step_definitions/*.js",
      "redcap_cypress/node_modules/rctf/step_definitions/support/*.js",
    ]
}