Created
March 28, 2019 22:01
-
-
Save aliustaoglu/5a8a02ea5276e5a75c96b71ec24aa796 to your computer and use it in GitHub Desktop.
Debug Jest/Cucumber/Java with VSCode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "java", | |
"name": "Debug Cucumber Tests", | |
"request": "launch", | |
"cwd": "${workspaceFolder}", | |
"mainClass": "nz.govt.nzta.ils.integration.web.CucumberRunnerIT", | |
"args": "-Dcucumber.options=\"--tags @MapScreen\"" | |
}, | |
{ | |
"type": "java", | |
"name": "Debug (Attach)", | |
"request": "attach", | |
"hostName": "localhost", | |
"port": 8080 | |
}, | |
{ | |
"type": "java", | |
"name": "CodeLens (Launch) - MainApp", | |
"request": "launch", | |
"cwd": "${workspaceFolder}", | |
"console": "internalConsole", | |
"stopOnEntry": false, | |
"mainClass": "nz.govt.nzta.ils.MainApp", | |
"args": "", | |
"projectName": "ils" | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch Program", | |
"program": "${workspaceFolder}/index.js" | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Jest All", | |
"program": "${workspaceFolder}/node_modules/.bin/jest", | |
"args": ["--runInBand"], | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen", | |
"windows": { | |
"program": "${workspaceFolder}/node_modules/jest/bin/jest", | |
} | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Jest Current File", | |
"program": "${workspaceFolder}/node_modules/.bin/jest", | |
"args": ["${relativeFile}"], | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen", | |
"windows": { | |
"program": "${workspaceFolder}/node_modules/jest/bin/jest", | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment