-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
92 lines (78 loc) · 2.98 KB
/
Taskfile.yaml
File metadata and controls
92 lines (78 loc) · 2.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '3'
tasks:
demo:
desc: "Run the distorsion movement demo"
cmds:
- echo "🎨 Starting distorsion movement demo..."
- source venv/bin/activate && python distorsion_movement/demos.py
- echo "✅ Demo finished"
demo:quick:
desc: "Run quick demo with default settings"
cmds:
- echo "🎨 Starting quick windowed demo..."
- source venv/bin/activate && python -c "from distorsion_movement import quick_demo; quick_demo()"
demo:fullscreen:
desc: "Run fullscreen demo"
cmds:
- echo "🎨 Starting fullscreen demo..."
- source venv/bin/activate && python -c "from distorsion_movement import fullscreen_demo; fullscreen_demo()"
test:
desc: "Run all tests with pytest"
cmds:
- echo "🧪 Running all tests..."
- source venv/bin/activate && pytest -v
- echo "✅ All tests completed"
test:unit:
desc: "Run only unit tests"
cmds:
- echo "🧪 Running unit tests..."
- source venv/bin/activate && pytest -v -m "unit or not integration"
- echo "✅ Unit tests completed"
test:integration:
desc: "Run only integration tests"
cmds:
- echo "🧪 Running integration tests..."
- source venv/bin/activate && pytest -v -m "integration"
- echo "✅ Integration tests completed"
test:coverage:
desc: "Run tests with coverage report"
cmds:
- echo "🧪 Running tests with coverage..."
- source venv/bin/activate && pytest --cov=distorsion_movement --cov-report=term-missing --cov-report=html
- echo "✅ Coverage report generated in htmlcov/"
test:watch:
desc: "Run tests in watch mode"
cmds:
- echo "🧪 Running tests in watch mode..."
- source venv/bin/activate && pytest-watch -- -v
test:fast:
desc: "Run fast tests only (exclude slow tests)"
cmds:
- echo "🧪 Running fast tests..."
- source venv/bin/activate && pytest -v -m "not slow"
- echo "✅ Fast tests completed"
test:validate:
desc: "Validate the entire test suite setup and coverage"
cmds:
- echo "🔍 Validating test suite..."
- echo "📊 Running tests with coverage..."
- source venv/bin/activate && pytest --cov=distorsion_movement --cov-report=term --cov-fail-under=80
- echo "🧪 Running unit tests..."
- source venv/bin/activate && pytest -v -m "unit" --tb=short
- echo "🔗 Running integration tests..."
- source venv/bin/activate && pytest -v -m "integration" --tb=short
- echo "⚡ Running fast tests..."
- source venv/bin/activate && pytest -v -m "not slow" --tb=short
- echo "✅ Test suite validation complete - all systems working!"
install:
desc: "Install required dependencies"
cmd: source venv/bin/activate && pip install -r requirements.txt
install:all:
desc: "Install all dependencies"
deps: [install]
help:
desc: "Show available commands"
cmd: task --list
test-echo:
desc: "Test echo command"
cmd: echo "Hello from Task!"