Skip to content

Commit

Permalink
Add WIP Gut 9.0.0 addon
Browse files Browse the repository at this point in the history
Gut needs the project setting "gdscript/warnings/exclude_addons" = true
to work properly.
  • Loading branch information
mphe committed Mar 12, 2023
1 parent 194f934 commit f966f6e
Show file tree
Hide file tree
Showing 24 changed files with 57 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "Gut"]
path = Gut
url = https://github.com/bitwes/Gut.git
44 changes: 44 additions & 0 deletions .gut_editor_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"background_color": "262626ff",
"compact_mode": false,
"config_file": "res://.gutconfig.json",
"dirs": [
"res://tests"
],
"disable_colors": false,
"double_strategy": "partial",
"font_color": "ccccccff",
"font_name": "CourierPrime",
"font_size": 16,
"gut_on_top": true,
"hide_orphans": false,
"ignore_pause": false,
"include_subdirs": true,
"inner_class": null,
"junit_xml_file": "",
"junit_xml_timestamp": false,
"log_level": 1,
"opacity": 100,
"paint_after": 0.1,
"panel_options": {
"font_name": "CourierPrime",
"font_size": 30,
"hide_output_text": false,
"hide_result_tree": false,
"hide_settings": false,
"use_colors": false
},
"post_run_script": "",
"pre_run_script": "",
"prefix": "test_",
"selected": null,
"should_exit": false,
"should_exit_on_success": false,
"should_maximize": false,
"show_help": false,
"suffix": ".gd",
"tests": [

],
"unit_test_name": null
}
1 change: 1 addition & 0 deletions Gut
Submodule Gut added at 878d09
1 change: 1 addition & 0 deletions addons/gut
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ gdscript/warnings/exclude_addons=false

[editor_plugins]

enabled=PackedStringArray("res://addons/rmsmartshape/plugin.cfg")
enabled=PackedStringArray("res://addons/rmsmartshape/plugin.cfg", "res://addons/gut/plugin.cfg")

[physics]

Expand Down
2 changes: 1 addition & 1 deletion scripts/linux/run_integration_tests.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Must be called from project root folder
godot -d -s --path $PWD addons/gut/gut_cmdln.gd -gdir=res://gut/integration -gmaximize -glog=2
godot4 -d -s --path $PWD addons/gut/gut_cmdln.gd -gdir=res://gut/integration -gmaximize -glog=2
2 changes: 1 addition & 1 deletion scripts/linux/run_test.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Must be called from project root folder
godot -d -s --path $PWD addons/gut/gut_cmdln.gd -gtest=res://$1 -gmaximize -glog=2
godot4 -d -s --path $PWD addons/gut/gut_cmdln.gd -gtest=res://$1 -gmaximize -glog=2
2 changes: 1 addition & 1 deletion scripts/linux/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Must be called from project root folder
godot -d -s --path $PWD addons/gut/gut_cmdln.gd -gdir=res://gut -gmaximize
godot4 -d -s --path $PWD addons/gut/gut_cmdln.gd -gdir=res://gut -gmaximize
2 changes: 1 addition & 1 deletion scripts/linux/run_unit_tests.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Must be called from project root folder
godot -d -s --path $PWD addons/gut/gut_cmdln.gd -gdir=res://gut/unit -gmaximize -glog=2
godot4 -d -s --path $PWD addons/gut/gut_cmdln.gd -gdir=res://gut/unit -gmaximize -glog=2
File renamed without changes.
File renamed without changes.
File renamed without changes
6 changes: 3 additions & 3 deletions gut/unit/test.png.import → tests/unit/test.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://dlk6x3r5o1lhu"
path="res://.godot/imported/test.png-c79a1e1fdd4269ec53e126e96173ec30.ctex"
path="res://.godot/imported/test.png-523ef0ec017178034476cd64b5556a31.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://gut/unit/test.png"
dest_files=["res://.godot/imported/test.png-c79a1e1fdd4269ec53e126e96173ec30.ctex"]
source_file="res://tests/unit/test.png"
dest_files=["res://.godot/imported/test.png-523ef0ec017178034476cd64b5556a31.ctex"]

[params]

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f966f6e

Please sign in to comment.