Skip to content

Commit

Permalink
Pre-launch task to build ec for acceptance tests
Browse files Browse the repository at this point in the history
Adds a task that will run `make build` before acceptance tests are run
from Code. This way the current version of `ec` is used in acceptance
tests.
  • Loading branch information
zregvart committed Jun 12, 2023
1 parent 6ba9467 commit da21999
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"program": "${workspaceFolder}/acceptance",
"args": [
"-tags=@focus"
]
],
"preLaunchTask": "build"
},
{
"name": "Acceptance tests (persist environment)",
Expand All @@ -37,7 +38,8 @@
"args": [
"-persist",
"-tags=@focus"
]
],
"preLaunchTask": "build"
},
{
"name": "Acceptance tests (restore persisted environment)",
Expand All @@ -47,7 +49,8 @@
"program": "${workspaceFolder}/acceptance",
"args": [
"-restore"
]
],
"preLaunchTask": "build"
},
{
"name": "ec validate image (against persisted environment - update as needed)",
Expand Down
11 changes: 11 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "make",
"args": ["build"]
}
]
}

0 comments on commit da21999

Please sign in to comment.