Skip to content

Commit

Permalink
chore: Add launch.json with debug configuration.
Browse files Browse the repository at this point in the history
Signed-off-by: Radim Hopp <[email protected]>
  • Loading branch information
rhopp committed Jun 15, 2022
1 parent 36d825a commit 9e12311
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

0 comments on commit 9e12311

Please sign in to comment.