Aniworld/.vscode/tasks.json
2025-10-12 18:05:31 +02:00

166 lines
4.4 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "Run FastAPI Server",
"type": "shell",
"command": "conda",
"args": [
"run",
"-n",
"AniWorld",
"python",
"-m",
"uvicorn",
"src.server.fastapi_app:app",
"--host",
"127.0.0.1",
"--port",
"8000",
"--reload"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "new"
},
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [],
"isBackground": true
},
{
"label": "Run CLI Application",
"type": "shell",
"command": "conda",
"args": [
"run",
"-n",
"AniWorld",
"python",
"src/cli/Main.py"
],
"group": "build",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "new"
},
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "Run All Tests",
"type": "shell",
"command": "conda",
"args": [
"run",
"-n",
"AniWorld",
"python",
"-m",
"pytest",
"tests/",
"-v",
"--tb=short"
],
"group": "test",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "new"
},
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "Run Unit Tests",
"type": "shell",
"command": "conda",
"args": [
"run",
"-n",
"AniWorld",
"python",
"-m",
"pytest",
"tests/unit/",
"-v"
],
"group": "test",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "new"
},
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "Run Integration Tests",
"type": "shell",
"command": "conda",
"args": [
"run",
"-n",
"AniWorld",
"python",
"-m",
"pytest",
"tests/integration/",
"-v"
],
"group": "test",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "new"
},
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "Install Dependencies",
"type": "shell",
"command": "conda",
"args": [
"run",
"-n",
"AniWorld",
"pip",
"install",
"-r",
"requirements.txt"
],
"group": "build",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "new"
},
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
}
]
}