You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,14 +39,14 @@ pytest -v
39
39
ps aux | grep run_lovely_macos
40
40
41
41
# Start if not running
42
-
./balatro.sh >balatrobot.log 2>&1& sleep 10 &&echo"Balatro started and ready"
42
+
./balatro.sh >balatro.log 2>&1& sleep 10 &&echo"Balatro started and ready"
43
43
```
44
44
45
45
2.**Monitor game startup**:
46
46
47
47
```bash
48
48
# Check logs for successful mod loading
49
-
tail -n 100 balatrobot.log
49
+
tail -n 100 balatro.log
50
50
51
51
# Look for these success indicators:
52
52
# - "BalatrobotAPI initialized"
@@ -60,14 +60,15 @@ pytest -v
60
60
-**JSON metadata errors**: Normal for development files (.vscode, .luarc.json) - can be ignored
61
61
62
62
4.**Test execution**:
63
-
-**Test suite**: 33 tests covering API functions and UDP communication
64
-
-**Execution time**: ~70 seconds (includes game state transitions)
63
+
-**Test suite**: 35 tests covering API functions and UDP communication
64
+
-**Execution time**: ~80 seconds (includes game state transitions)
65
65
-**Coverage**: API function calls, socket communication, error handling, edge cases
66
66
67
67
5.**Troubleshooting test failures**:
68
68
-**Connection timeouts**: Ensure UDP port 12346 is available
69
69
-**Game state errors**: Check if game is responsive and not crashed
70
70
-**Invalid responses**: Verify mod loaded correctly by checking logs
71
+
-**If test/s fail for timeout the reasons is that Balatro crash because there was an error in the Balatro mod (i.e. @balatrobot.lua and @src/lua/ ). The error should be logged in the `balatro.log` file.**
71
72
72
73
### Documentation
73
74
@@ -121,4 +122,4 @@ I keep the old code around for reference.
121
122
### Testing Best Practices
122
123
123
124
-**Always check that Balatro is running before running tests**
124
-
- After starting Balatro, check the `balatrobot.log` to confirm successful startup
125
+
- After starting Balatro, check the `balatro.log` to confirm successful startup
0 commit comments