diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..795456099 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,31 @@ +{ + // 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": [ + { + "name": "Launch demo suites", + "type": "go", + "request": "launch", + "mode": "test", + "program": "${workspaceFolder}/cmd/e2e_test.go", + "args": [ + "--ginkgo.focus=e2e-demos-suite", + "--ginkgo.junit-report=report.xml" + ], + "cwd": "${workspaceFolder}", + "env": { + "GITHUB_TOKEN": "${input:ghToken}" + } + } + ], + "inputs": [ + { + "id": "ghToken", + "type": "promptString", + "description": "Github token", + "password": true + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index f70400e0c..98d8bfa90 100644 --- a/README.md +++ b/README.md @@ -55,3 +55,10 @@ import ( _ "github.com/redhat-appstudio/e2e-tests/tests/has" ) ``` + +# Debugging tests +## In vscode +There is launch configuration in `.vscode/launch.json` called `Launch demo suites`. +Running this configuration, you'll be asked for github token and then e2e-demos suite will run with default configuration. + +If you want to run/debug different suite, change `-ginkgo.focus` parameter in `.vscode/launch.json`.