-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Another attempt at porting to Godot 4 * additional addon fixes * additional fixes * fix removal of rect_min_size with custom_minimum_size * address more issues * fix remaining setget methods * 🐛 remove NativeScript * 🐛 additional gdscript fixes * 💥 delete native script Co-authored-by: Butch Wesley <[email protected]> Co-authored-by: Divided by Zer0 <[email protected]> Co-authored-by: strank <[email protected]> Co-authored-by: Johannes Ebner <[email protected]> Co-authored-by: hilfazer <[email protected]> Co-authored-by: Aaron Franke <[email protected]>
- Loading branch information
1 parent
3e36028
commit 06e14a3
Showing
188 changed files
with
10,813 additions
and
2,178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[main] | ||
|
||
run_all=Object(ShortCut,"resource_local_to_scene":false,"resource_name":"","shortcut":Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":true,"meta":false,"command":false,"pressed":false,"scancode":49,"physical_scancode":0,"unicode":0,"echo":false,"script":null) | ||
,"script":null) | ||
|
||
run_current_script=Object(ShortCut,"resource_local_to_scene":false,"resource_name":"","shortcut":Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":true,"meta":false,"command":false,"pressed":false,"scancode":50,"physical_scancode":0,"unicode":0,"echo":false,"script":null) | ||
,"script":null) | ||
|
||
run_current_inner=Object(ShortCut,"resource_local_to_scene":false,"resource_name":"","shortcut":Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":true,"meta":false,"command":false,"pressed":false,"scancode":51,"physical_scancode":0,"unicode":0,"echo":false,"script":null) | ||
,"script":null) | ||
|
||
run_current_test=Object(ShortCut,"resource_local_to_scene":false,"resource_name":"","shortcut":Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":true,"meta":false,"command":false,"pressed":false,"scancode":52,"physical_scancode":0,"unicode":0,"echo":false,"script":null) | ||
,"script":null) | ||
|
||
panel_button=Object(ShortCut,"resource_local_to_scene":false,"resource_name":"","shortcut":Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":true,"meta":false,"command":false,"pressed":false,"scancode":48,"physical_scancode":0,"unicode":0,"echo":false,"script":null) | ||
,"script":null) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
{ | ||
"dirs":["res://test/unit/", "res://test/integration/"], | ||
"should_maximize":true, | ||
"dirs":["res://test/unit/", "res://test/unit/test_bugs/", "res://test/integration/"], | ||
"should_maximize":false, | ||
"should_exit":true, | ||
"ignore_pause":true, | ||
"log_level":1, | ||
"log_level":3, | ||
"opacity":100, | ||
"double_strategy":"partial", | ||
"include_subdirs":true, | ||
"inner_class":"", | ||
"disable_colors":false | ||
"disable_colors":false, | ||
"post_run_script":"res://test/post_run_export_json.gd", | ||
|
||
"compact_mode":true, | ||
"gut_on_top":true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[gd_resource type="FontFile" load_steps=2 format=2] | ||
|
||
[sub_resource type="FontFile" id=9] | ||
font_path = "res://addons/gut/fonts/LobsterTwo-BoldItalic.ttf" | ||
|
||
[resource] | ||
size = 40 | ||
font_data = SubResource( 9 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[gd_resource type="Theme" load_steps=2 format=2] | ||
|
||
[ext_resource path="res://BigFont.tres" type="FontFile" id=1] | ||
|
||
[resource] | ||
default_font = ExtResource( 1 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,41 @@ | ||
# Gut 7.1.0 | ||
GUT (Godot Unit Test) is a utility for writing tests for your Godot Engine game. It allows you to write tests for your gdscript in gdscript. | ||
|
||
|
||
# Features | ||
* Godot 3.2.x compatible, includes all releases from 3.2.0 through 3.2.2. [6.8.3](https://github.com/bitwes/Gut/releases/tag/v6.8.3) is 3.1 compatible | ||
* [Simple install](https://github.com/bitwes/Gut/wiki/Install) via the Asset Library. | ||
* A plethora of [asserts and utility methods](https://github.com/bitwes/Gut/wiki/Asserts-and-Methods) to help make your tests simple and concise. | ||
* Support for [Inner Test Classes](https://github.com/bitwes/Gut/wiki/Inner-Test-Classes) to give your tests some extra context and maintainability. | ||
* Doubling: [Full](https://github.com/bitwes/Gut/wiki/Doubles) and [Partial](https://github.com/bitwes/Gut/wiki/Partial-Doubles), [Stubbing](https://github.com/bitwes/Gut/wiki/Stubbing), [Spies](https://github.com/bitwes/Gut/wiki/Spies) | ||
* Command Line Interface [(CLI)](https://github.com/bitwes/Gut/wiki/Command-Line) | ||
* [Parameterized Tests](https://github.com/bitwes/Gut/wiki/ParameterizedTests) | ||
* [Export tests](https://github.com/bitwes/Gut/wiki/Exporting-Tests) with your project and run them on any platform Godot supports. | ||
|
||
More info can be found in the [wiki](https://github.com/bitwes/Gut/wiki). | ||
|
||
|
||
# Getting Started | ||
* [Install](https://github.com/bitwes/Gut/wiki/Install) | ||
* [Quick Start](https://github.com/bitwes/Gut/wiki/Quick-Start) | ||
* [Creating Tests](https://github.com/bitwes/Gut/wiki/Creating-Tests) | ||
* [Asserts and Methods](https://github.com/bitwes/Gut/wiki/Asserts-and-Methods) | ||
|
||
|
||
# VSCode Extension | ||
Run your tests directly from the VSCode Editor. Search VSCode extensions for "gut-extension". The plugin has commands to run your entire test suite, a single test script or a single test. | ||
* [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=bitwes.gut-extension) | ||
* [Github repo](https://github.com/bitwes/gut-extension) | ||
* [Quick tutorial on setup and use](https://youtu.be/pqcA8A52CMs) | ||
|
||
|
||
# License | ||
Gut is provided under the MIT license. License is in `addons/gut/LICENSE.md` | ||
|
||
|
||
## [Tutorials](https://github.com/bitwes/Gut/wiki/Tutorials) | ||
* [Here's a short setup tutorial provided by Rainware](https://www.youtube.com/watch?v=vBbqlfmcAlc) | ||
* [TDD and P O N G Series](https://www.youtube.com/channel/UCkGO6guRt_5fOh3oDHbfg9w/playlists) | ||
# Gut 7.3.0 | ||
GUT (Godot Unit Test) is a unit testing framework for the [Godot Engine](https://godotengine.org/). It allows you to write tests for your gdscript in gdscript. | ||
|
||
### Donate/Shameless Plug | ||
If you would like to help support GUT check out my game [Country or State](https://www.youtube.com/watch?v=iCAROKgN9xw&t=4s) on [Android](https://play.google.com/store/apps/details?id=com.butchwesley.country_or_state&hl=en_US&gl=US) and [iOS](https://apps.apple.com/us/app/country-or-state/id1504122706). Then, purchase the full version even if you don't like it. Thanks! | ||
|
||
# Features | ||
* Godot 3.2.x, 3.3.x, 3.4.x compatible. | ||
* [Simple install](https://github.com/bitwes/Gut/wiki/Install) via the Asset Library. | ||
* A plethora of [asserts and utility methods](https://github.com/bitwes/Gut/wiki/Asserts-and-Methods) to help make your tests simple and concise. | ||
* Support for [Inner Test Classes](https://github.com/bitwes/Gut/wiki/Inner-Test-Classes) to give your tests some extra context and maintainability. | ||
* Doubling: [Full](https://github.com/bitwes/Gut/wiki/Doubles) and [Partial](https://github.com/bitwes/Gut/wiki/Partial-Doubles), [Stubbing](https://github.com/bitwes/Gut/wiki/Stubbing), [Spies](https://github.com/bitwes/Gut/wiki/Spies) | ||
* Command Line Interface [(CLI)](https://github.com/bitwes/Gut/wiki/Command-Line) | ||
* [Parameterized Tests](https://github.com/bitwes/Gut/wiki/ParameterizedTests) | ||
* [Export results](https://github.com/bitwes/Gut/wiki/Export-Test-Results) in standard JUnit XML format. | ||
* [Distribute your tests](https://github.com/bitwes/Gut/wiki/Running-On-Devices) with your project and run them on any platform Godot supports. | ||
|
||
More info can be found in the [wiki](https://github.com/bitwes/Gut/wiki). | ||
|
||
|
||
# Getting Started | ||
* [Install](https://github.com/bitwes/Gut/wiki/Install) | ||
* [Quick Start](https://github.com/bitwes/Gut/wiki/Quick-Start) | ||
* [Creating Tests](https://github.com/bitwes/Gut/wiki/Creating-Tests) | ||
* [Asserts and Methods](https://github.com/bitwes/Gut/wiki/Asserts-and-Methods) | ||
|
||
|
||
# VSCode Extension | ||
Run your tests directly from the VSCode Editor. Search VSCode extensions for "gut-extension". The plugin has commands to run your entire test suite, a single test script or a single test. | ||
* [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=bitwes.gut-extension) | ||
* [Github repo](https://github.com/bitwes/gut-extension) | ||
* [Quick tutorial on setup and use](https://youtu.be/pqcA8A52CMs) | ||
|
||
|
||
# License | ||
Gut is provided under the MIT license. License is in `addons/gut/LICENSE.md` | ||
|
||
|
||
## [Tutorials](https://github.com/bitwes/Gut/wiki/Tutorials) | ||
* [TDD and P O N G Series](https://www.youtube.com/channel/UCkGO6guRt_5fOh3oDHbfg9w/playlists) | ||
* Wiki list of tutorials https://github.com/bitwes/Gut/wiki/Tutorials |
Oops, something went wrong.