ConceptPortal-public/.vscode/launch.json

113 lines
3.2 KiB
JSON
Raw Normal View History

2023-07-15 17:46:19 +03:00
{
2024-04-12 20:32:18 +03:00
// 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": [
{
2024-07-22 21:20:51 +03:00
// Run Frontend + Backend with current Database
2024-04-12 20:32:18 +03:00
"name": "Run",
"type": "PowerShell",
"request": "launch",
"script": "${workspaceFolder}/scripts/dev/RunServer.ps1",
"args": []
},
{
2024-07-22 21:20:51 +03:00
// Run Linters
2024-04-12 20:32:18 +03:00
"name": "Lint",
"type": "PowerShell",
"request": "launch",
"script": "${workspaceFolder}/scripts/dev/RunLint.ps1",
"args": []
},
{
2024-07-22 21:20:51 +03:00
// Run Tests
2024-04-12 20:32:18 +03:00
"name": "Test",
"type": "PowerShell",
"request": "launch",
"script": "${workspaceFolder}/scripts/dev/RunTests.ps1",
"args": []
},
{
// Run end-to-end tests
"name": "Test E2E",
"type": "PowerShell",
"request": "launch",
"script": "${workspaceFolder}/scripts/dev/RunE2ETests.ps1",
"args": []
},
2024-04-12 20:32:18 +03:00
{
2024-07-22 21:20:51 +03:00
// Run Tests for backend for current file in Debug mode
"name": "BE-DebugTestFile",
2024-04-12 20:32:18 +03:00
"type": "debugpy",
"request": "launch",
"cwd": "${workspaceFolder}/rsconcept/backend",
"program": "${workspaceFolder}/rsconcept/backend/manage.py",
"args": ["test", "-k", "${fileBasenameNoExtension}"],
2024-04-12 20:32:18 +03:00
"django": true
},
{
2024-07-22 21:20:51 +03:00
// Run Tests for frontned in Debug mode
2024-06-05 16:49:34 +03:00
"name": "FE-DebugTestAll",
2024-04-12 20:32:18 +03:00
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceFolder}/rsconcept/frontend/node_modules/.bin/jest",
"args": [
"${fileBasenameNoExtension}",
"--runInBand",
"--watch",
"--coverage=false",
"--no-cache"
],
"cwd": "${workspaceFolder}/rsconcept/frontend",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"sourceMaps": true,
"windows": {
"program": "${workspaceFolder}/rsconcept/frontend/node_modules/jest/bin/jest"
}
2024-06-05 16:49:34 +03:00
},
{
2024-07-22 21:20:51 +03:00
// Run Browser in Debug mode (Backend should be running)
2024-06-05 16:49:34 +03:00
"name": "FE-Debug",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000/library",
"webRoot": "${workspaceFolder}/rsconcept/frontend"
},
{
2024-07-22 21:20:51 +03:00
// Run Backend in Debug mode
2024-06-05 16:49:34 +03:00
"name": "BE-Debug",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/rsconcept/backend/manage.py",
"args": ["runserver"],
"django": true
},
{
2024-07-22 21:20:51 +03:00
// Run Backend test coverage
2024-06-05 16:49:34 +03:00
"name": "BE-Coverage",
"type": "PowerShell",
"request": "launch",
"script": "${workspaceFolder}/scripts/dev/RunCoverage.ps1",
"args": []
},
{
2024-07-22 21:20:51 +03:00
// Recreate database, fill with initial data and Run Backend + Frontend
2024-06-05 16:49:34 +03:00
"name": "Restart",
"type": "PowerShell",
"request": "launch",
"script": "${workspaceFolder}/scripts/dev/RunServer.ps1",
"args": ["-freshStart"]
2024-07-22 21:20:51 +03:00
},
{
// Create DOT file for visualizing database
"name": "BE-GraphDB",
"type": "PowerShell",
"request": "launch",
"script": "${workspaceFolder}/scripts/dev/GraphDB.ps1",
"args": []
2024-04-12 20:32:18 +03:00
}
]
}