Skip to content

Commit

Permalink
I393 file prefix breaks running from scene. (#394)
Browse files Browse the repository at this point in the history
* suffix enhancement broke running from scene.
* CHANGES and version bump
  • Loading branch information
bitwes authored Aug 15, 2022
1 parent 796766f commit 18f6bdd
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

# 7.4.1
* __Issue i393__ 7.4.0 broke running from a scene. On a side note, try the new and improved Gut Panel! It __did not__ break in the last release and was significantly improved!

# 7.4.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Gut 7.4.0
# Gut 7.4.1
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
Expand Down
4 changes: 3 additions & 1 deletion addons/gut/gut.gd
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ var _before_all_test_obj = load('res://addons/gut/test_collector.gd').Test.new()
# Used for proper assert tracking and printing during after_all
var _after_all_test_obj = load('res://addons/gut/test_collector.gd').Test.new()


var _file_prefix = 'test_'
const SIGNAL_TESTS_FINISHED = 'tests_finished'
const SIGNAL_STOP_YIELD_BEFORE_TEARDOWN = 'stop_yield_before_teardown'

Expand Down Expand Up @@ -1118,7 +1120,7 @@ func add_script(script):
# with the suffix. Does not look in sub directories. Can be called multiple
# times.
# ------------------------------------------------------------------------------
func add_directory(path, prefix="test_", suffix=".gd"):
func add_directory(path, prefix=_file_prefix, suffix=".gd"):
# check for '' b/c the calls to addin the exported directories 1-6 will pass
# '' if the field has not been populated. This will cause res:// to be
# processed which will include all files if include_subdirectories is true.
Expand Down
2 changes: 1 addition & 1 deletion addons/gut/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
name="Gut"
description="Unit Testing tool for Godot."
author="Butch Wesley"
version="7.4.0"
version="7.4.1"
script="gut_plugin.gd"
3 changes: 0 additions & 3 deletions addons/gut/plugin_control.gd
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ export var _yield_between_tests = true
# development to prevent any breaking changes and will likely be removed in
# the future.
export var _disable_strict_datatype_checks = false
# The prefix used to find test methods.
export var _test_prefix = 'test_'
# The prefix used to find test scripts.
export var _file_prefix = 'test_'
# The suffix used to find test scripts.
Expand Down Expand Up @@ -180,7 +178,6 @@ func _setup_gut():
_gut._tests_like = _tests_like
_gut._inner_class_name = _inner_class_name

_gut._test_prefix = _test_prefix
_gut._file_prefix = _file_prefix
_gut._inner_class_prefix = _inner_class_prefix
_gut._temp_directory = _temp_directory
Expand Down
2 changes: 1 addition & 1 deletion addons/gut/utils.gd
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ var TestCollector = load('res://addons/gut/test_collector.gd')
var ThingCounter = load('res://addons/gut/thing_counter.gd')

# Source of truth for the GUT version
var version = '7.4.0'
var version = '7.4.1'
# The required Godot version as an array.
var req_godot = [3, 2, 0]
# Used for doing file manipulation stuff so as to not keep making File instances.
Expand Down
35 changes: 35 additions & 0 deletions gut_panel.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/gut_panel.png-51315c4dbef24e14bb14c0ee0272b7be.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://gut_panel.png"
dest_files=[ "res://.import/gut_panel.png-51315c4dbef24e14bb14c0ee0272b7be.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
3 changes: 0 additions & 3 deletions scenes/main.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ margin_right = 844.257
margin_bottom = 331.628
rect_min_size = Vector2( 740, 250 )
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
_font_name = "CourierPrime"
_font_color = Color( 0.733333, 0.733333, 0.733333, 1 )
_background_color = Color( 0.14902, 0.14902, 0.14902, 1 )
Expand Down

0 comments on commit 18f6bdd

Please sign in to comment.