Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

feat(test): Add debug profile for integration test #398

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
// 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": "Debug integration test build",
"type": "node",
"cwd": "${workspaceFolder}/example",
"request": "launch",
"preLaunchTask": "Install Integration Test Dependencies",
"runtimeExecutable": "${workspaceFolder}/example/node_modules/.bin/webpack",
"skipFiles": [
"<node_internals>/**"
],
"outputCapture": "std",
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": "Debug integration test script",
"type": "node",
"cwd": "${workspaceFolder}/example",
"request": "launch",
"preLaunchTask": "Build Integration Test Example App",
"runtimeExecutable": "node",
"runtimeArgs": ["test.js"],
"skipFiles": [
"<node_internals>/**"
],
"outputCapture": "std",
"internalConsoleOptions": "openOnSessionStart"
}
]
}
25 changes: 25 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Set up local @sentry/webpack-plugin for linking",
"type": "shell",
"command": "yarn link > /dev/null 2>&1",
"options": {"cwd": "${workspaceFolder}"},
},
{
"label": "Install Integration Test Dependencies",
"type": "shell",
"command": "yarn && yarn link @sentry/webpack-plugin",
"options": {"cwd": "${workspaceFolder}/example"},
"dependsOn": "Set up local @sentry/webpack-plugin for linking"
},
{
"label": "Build Integration Test Example App",
"type": "shell",
"command": "yarn webpack",
"options": {"cwd": "${workspaceFolder}/example"},
"dependsOn": "Install Integration Test Dependencies"
}
]
}