Skip to content
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
79e8cfd
[FEATURE] Refactor key-mapping system to separate keyboard, mouse, an…
ikostan Jan 22, 2026
a15aae8
Update key_mapping.gd
ikostan Jan 22, 2026
5afe5ed
issue (bug_risk): Mutually toggling the CheckButtons risks recursive …
ikostan Jan 22, 2026
6cb3b42
Update menu input actions to use standard UI names
ikostan Jan 22, 2026
016dd31
Refactor input remapping for device-specific controls
ikostan Jan 22, 2026
6fd07e4
Refactor input handling and parameter naming
ikostan Jan 22, 2026
b18afea
Update input_remap_button.gd
ikostan Jan 22, 2026
7a81286
Wire mouse button remapping to the new labels.
ikostan Jan 22, 2026
dfddc2a
Update the menu remap tooltips (copy/paste text).
ikostan Jan 22, 2026
a908344
Update key_mapping_menu.tscn
ikostan Jan 22, 2026
fa56e84
Handle legacy config formats to avoid load failures.
ikostan Jan 22, 2026
b46f899
Update key_mapping_menu.tscn
ikostan Jan 22, 2026
b113b40
Update input remap tests and settings handling
ikostan Jan 22, 2026
3e75eeb
Add GUT test runner script and update input tests
ikostan Jan 23, 2026
23d3946
Update run_gut_unit_tests.sh
ikostan Jan 23, 2026
8fa9e92
Improve test cleanup for audio settings tests
ikostan Jan 23, 2026
15c487a
Quote $GODOT to handle paths with spaces.
ikostan Jan 23, 2026
7590393
Potential double-instantiation of audio_instance.
ikostan Jan 23, 2026
2e8f0d9
issue (bug_risk): Casting the saved value to Array[String] can throw …
ikostan Jan 23, 2026
34ed129
Guard remove_child to avoid “node is not a child” errors.
ikostan Jan 23, 2026
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
38 changes: 38 additions & 0 deletions run_gut_unit_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash

# This script runs GUT unit tests locally on Windows 10 using Godot 4.4/4.5.
# Assumptions:
# - Godot executable is in your PATH or specify the full path below.
# - Project is in the current directory.
# - Tests are located in res://test/ and use GUT syntax.
# - Run this script from the project root using Git Bash, WSL, or similar.
# - A .gutconfig.json file should exist in the project root (create one if missing; see Step 2).

# Path to Godot executable (update if not in PATH; on Windows, it's godot.exe)
GODOT="godot" # Or full path, e.g., "C:/Path/To/Godot/godot.exe"

# Project directory (current working directory)
PROJECT_DIR="$(pwd)"

# Install GUT if not already in addons/
echo "Ensuring GUT is installed in addons/..."
if [ ! -d "$PROJECT_DIR/addons/gut" ]; then
mkdir -p "$PROJECT_DIR/addons"
wget https://github.com/bitwes/Gut/archive/refs/tags/v9.5.0.zip
unzip v9.5.0.zip -d "$PROJECT_DIR/addons"
mv "$PROJECT_DIR/addons/Gut-9.5.0/addons/gut" "$PROJECT_DIR/addons/gut"
rm -rf "$PROJECT_DIR/addons/Gut-9.5.0" v9.5.0.zip
fi

# Optional: Import resources (uncomment if needed; runs Godot headless to import)
echo "Importing Resources..."
$GODOT --headless --path "$PROJECT_DIR" --import --quit
if [ $? -ne 0 ]; then echo "Resource import failed."; exit 1; fi

# Run GUT tests
echo "Running GUT Unit Tests..."
$GODOT --headless --verbose --path "$PROJECT_DIR" -s addons/gut/gut_cmdln.gd -gconfig=res://.gutconfig.json -gdir=res://test -ginclude_subdirs=true -gexit
if [ $? -ne 0 ]; then echo "Unit tests failed."; exit 1; fi
Comment thread
ikostan marked this conversation as resolved.
Resolved

# Optional: Handle reports (GUT can generate JUnit XML or other reports based on config)
echo "Tests completed! Check reports in gut-reports/ or configured directory if generated."
Loading
Loading