Adding log.gd

This commit is contained in:
Dan Baker 2024-05-02 09:36:31 +01:00
parent eb32d6614e
commit 4522259397
547 changed files with 46844 additions and 0 deletions

View file

@ -0,0 +1,122 @@
# GdUnit generated TestSuite
class_name GdMarkDownReaderTest
extends GdUnitTestSuite
# TestSuite generated from
const __source = 'res://addons/gdUnit4/src/update/GdMarkDownReader.gd'
const GdUnitUpdateClient = preload("res://addons/gdUnit4/src/update/GdUnitUpdateClient.gd")
var _reader = preload("res://addons/gdUnit4/src/update/GdMarkDownReader.gd").new()
var _client :GdUnitUpdateClient
func before():
_client = GdUnitUpdateClient.new()
add_child(_client)
_reader.set_http_client(_client)
func after():
_client.queue_free()
func test_tobbcode() -> void:
var source := resource_as_string("res://addons/gdUnit4/test/update/resources/markdown_example.txt")
var expected := resource_as_string("res://addons/gdUnit4/test/update/resources/bbcode_example.txt")
assert_str(await _reader.to_bbcode(source)).is_equal(expected)
func test_tobbcode_table() -> void:
var source := resource_as_string("res://addons/gdUnit4/test/update/resources/markdown_table.txt")
var expected := resource_as_string("res://addons/gdUnit4/test/update/resources/bbcode_table.txt")
assert_str(await _reader.to_bbcode(source)).is_equal(expected)
func test_tobbcode_html_headers() -> void:
var source := resource_as_string("res://addons/gdUnit4/test/update/resources/html_header.txt")
var expected := resource_as_string("res://addons/gdUnit4/test/update/resources/bbcode_header.txt")
assert_str(await _reader.to_bbcode(source)).is_equal(expected)
func test_tobbcode_md_headers() -> void:
var source := resource_as_string("res://addons/gdUnit4/test/update/resources/md_header.txt")
var expected := resource_as_string("res://addons/gdUnit4/test/update/resources/bbcode_md_header.txt")
assert_str(await _reader.to_bbcode(source)).is_equal(expected)
func test_tobbcode_list() -> void:
assert_str(await _reader.to_bbcode("- item")).is_equal("[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] item\n")
assert_str(await _reader.to_bbcode(" - item")).is_equal(" [img=12x12]res://addons/gdUnit4/src/update/assets/dot2.png[/img] item\n")
assert_str(await _reader.to_bbcode(" - item")).is_equal(" [img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] item\n")
assert_str(await _reader.to_bbcode(" - item")).is_equal(" [img=12x12]res://addons/gdUnit4/src/update/assets/dot2.png[/img] item\n")
func test_to_bbcode_embeded_text() -> void:
assert_str(await _reader.to_bbcode("> some text")).is_equal("[img=50x14]res://addons/gdUnit4/src/update/assets/embedded.png[/img][i] some text[/i]\n")
func test_process_image() -> void:
#regex("!\\[(.*?)\\]\\((.*?)(( )+(.*?))?\\)")
var reg_ex :RegEx = _reader.md_replace_patterns[24][0]
# without tooltip
assert_str(await _reader.process_image(reg_ex, "![alt text](res://addons/gdUnit4/test/update/resources/icon48.png)"))\
.is_equal("[img]res://addons/gdUnit4/test/update/resources/icon48.png[/img]")
# with tooltip
assert_str(await _reader.process_image(reg_ex, "![alt text](res://addons/gdUnit4/test/update/resources/icon48.png \"Logo Title Text 1\")"))\
.is_equal("[img]res://addons/gdUnit4/test/update/resources/icon48.png[/img]")
# multiy lines
var input := """
![alt text](res://addons/gdUnit4/test/update/resources/icon48.png)
![alt text](res://addons/gdUnit4/test/update/resources/icon23.png \"Logo Title Text 1\")
""".dedent()
var expected := """
[img]res://addons/gdUnit4/test/update/resources/icon48.png[/img]
[img]res://addons/gdUnit4/test/update/resources/icon23.png[/img]
""".dedent()
assert_str(await _reader.process_image(reg_ex, input))\
.is_equal(expected)
func test_process_image_by_reference() -> void:
#regex("!\\[(.*?)\\]\\((.*?)(( )+(.*?))?\\)")
var reg_ex :RegEx = _reader.md_replace_patterns[23][0]
var input := """
![alt text1][logo-1]
[logo-1]:https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"
![alt text2][logo-1]
""".dedent()
var expected := """
![alt text1](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png)
![alt text2](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png)
""".replace("\r", "").dedent()
# without tooltip
assert_str(_reader.process_image_references(reg_ex, input))\
.is_equal(expected)
func test_process_external_image_save_as_png() -> void:
var input := """
[img]https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png[/img]
[img]https://github.com/MikeSchulze/gdUnit4/assets/347037/3205c9f1-1746-4716-aa6d-e3a1808b761d[/img]
""".dedent()
var output := await _reader._process_external_image_resources(input)
assert_str(output).is_equal("""
[img]res://addons/gdUnit4/tmp-update/icon48.png[/img]
[img]res://addons/gdUnit4/tmp-update/3205c9f1-1746-4716-aa6d-e3a1808b761d.png[/img]
""".dedent())
assert_file("res://addons/gdUnit4/tmp-update/icon48.png").exists()
assert_file("res://addons/gdUnit4/tmp-update/3205c9f1-1746-4716-aa6d-e3a1808b761d.png").exists()

View file

@ -0,0 +1,114 @@
# GdUnit generated TestSuite
class_name GdUnitPatcherTest
extends GdUnitTestSuite
# TestSuite generated from
const __source = 'res://addons/gdUnit4/src/update/GdUnitPatcher.gd'
const _patches := "res://addons/gdUnit4/test/update/resources/patches/"
var _patcher :GdUnitPatcher
func before():
_patcher = auto_free(GdUnitPatcher.new())
func before_test():
Engine.set_meta(GdUnitPatch.PATCH_VERSION, [])
_patcher._patches.clear()
func test__collect_patch_versions_no_patches() -> void:
# using higher version than patches exists in patch folder
assert_array(_patcher._collect_patch_versions(_patches, GdUnit4Version.new(3,0,0))).is_empty()
func test__collect_patch_versions_current_eq_latest_version() -> void:
# using equal version than highst available patch
assert_array(_patcher._collect_patch_versions(_patches, GdUnit4Version.new(1,1,4))).is_empty()
func test__collect_patch_versions_current_lower_latest_version() -> void:
# using one version lower than highst available patch
assert_array(_patcher._collect_patch_versions(_patches, GdUnit4Version.new(0,9,9)))\
.contains_exactly(["res://addons/gdUnit4/test/update/resources/patches/v1.1.4"])
# using two versions lower than highst available patch
assert_array(_patcher._collect_patch_versions(_patches, GdUnit4Version.new(0,9,8)))\
.contains_exactly([
"res://addons/gdUnit4/test/update/resources/patches/v0.9.9",
"res://addons/gdUnit4/test/update/resources/patches/v1.1.4"])
# using three versions lower than highst available patch
assert_array(_patcher._collect_patch_versions(_patches, GdUnit4Version.new(0,9,5)))\
.contains_exactly([
"res://addons/gdUnit4/test/update/resources/patches/v0.9.6",
"res://addons/gdUnit4/test/update/resources/patches/v0.9.9",
"res://addons/gdUnit4/test/update/resources/patches/v1.1.4"])
func test_scan_patches() -> void:
_patcher._scan(_patches, GdUnit4Version.new(0,9,6))
assert_dict(_patcher._patches)\
.contains_key_value("res://addons/gdUnit4/test/update/resources/patches/v0.9.9", PackedStringArray(["patch_a.gd", "patch_b.gd"]))\
.contains_key_value("res://addons/gdUnit4/test/update/resources/patches/v1.1.4", PackedStringArray(["patch_a.gd"]))
assert_int(_patcher.patch_count()).is_equal(3)
_patcher._patches.clear()
_patcher._scan(_patches, GdUnit4Version.new(0,9,5))
assert_dict(_patcher._patches)\
.contains_key_value("res://addons/gdUnit4/test/update/resources/patches/v0.9.6", PackedStringArray(["patch_x.gd"]))\
.contains_key_value("res://addons/gdUnit4/test/update/resources/patches/v0.9.9", PackedStringArray(["patch_a.gd", "patch_b.gd"]))\
.contains_key_value("res://addons/gdUnit4/test/update/resources/patches/v1.1.4", PackedStringArray(["patch_a.gd"]))
assert_int(_patcher.patch_count()).is_equal(4)
func test_execute_no_patches() -> void:
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_empty()
_patcher.execute()
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_empty()
func test_execute_v_095() -> void:
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_empty()
_patcher._scan(_patches, GdUnit4Version.parse("v0.9.5"))
_patcher.execute()
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_equal([
GdUnit4Version.parse("v0.9.6"),
GdUnit4Version.parse("v0.9.9-a"),
GdUnit4Version.parse("v0.9.9-b"),
GdUnit4Version.parse("v1.1.4"),
])
func test_execute_v_096() -> void:
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_empty()
_patcher._scan(_patches, GdUnit4Version.parse("v0.9.6"))
_patcher.execute()
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_equal([
GdUnit4Version.parse("v0.9.9-a"),
GdUnit4Version.parse("v0.9.9-b"),
GdUnit4Version.parse("v1.1.4"),
])
func test_execute_v_099() -> void:
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_empty()
_patcher._scan(_patches, GdUnit4Version.new(0,9,9))
_patcher.execute()
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_equal([
GdUnit4Version.parse("v1.1.4"),
])
func test_execute_v_150() -> void:
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_empty()
_patcher._scan(_patches, GdUnit4Version.parse("v1.5.0"))
_patcher.execute()
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_empty()

View file

@ -0,0 +1,18 @@
# GdUnit generated TestSuite
class_name GdUnitUpdateTest
extends GdUnitTestSuite
# TestSuite generated from
const GdUnitUpdate = preload('res://addons/gdUnit4/src/update/GdUnitUpdate.gd')
func after_test():
clean_temp_dir()
func test__prepare_update_deletes_old_content() -> void:
var _update :GdUnitUpdate = auto_free(GdUnitUpdate.new())

View file

@ -0,0 +1,48 @@
extends Control
const GdUnitTools := preload("res://addons/gdUnit4/src/core/GdUnitTools.gd")
const GdMarkDownReader := preload("res://addons/gdUnit4/src/update/GdMarkDownReader.gd")
const GdUnitUpdateClient := preload("res://addons/gdUnit4/src/update/GdUnitUpdateClient.gd")
@onready var _input :TextEdit = $HSplitContainer/TextEdit
@onready var _text :RichTextLabel = $HSplitContainer/RichTextLabel
@onready var _update_client :GdUnitUpdateClient = $GdUnitUpdateClient
var _md_reader := GdMarkDownReader.new()
func _ready():
_md_reader.set_http_client(_update_client)
var source := GdUnitFileAccess.resource_as_string("res://addons/gdUnit4/test/update/resources/markdown_example.txt")
_input.text = source
await set_bbcode(source)
func set_bbcode(text :String) :
var bbcode = await _md_reader.to_bbcode(text)
_text.clear()
_text.append_text(bbcode)
_text.queue_redraw()
func _on_TextEdit_text_changed():
await set_bbcode(_input.get_text())
func _on_RichTextLabel_meta_clicked(meta :String):
var properties = str_to_var(meta)
prints("meta_clicked", properties)
if properties.has("url"):
OS.shell_open(properties.get("url"))
func _on_RichTextLabel_meta_hover_started(meta :String):
var properties = str_to_var(meta)
prints("hover_started", properties)
if properties.has("tool_tip"):
_text.set_tooltip(properties.get("tool_tip"))
func _on_RichTextLabel_meta_hover_ended(_meta :String):
_text.set_tooltip("")

View file

@ -0,0 +1,39 @@
[gd_scene load_steps=3 format=3 uid="uid://c1rwx6anh3u3m"]
[ext_resource type="Script" path="res://addons/gdUnit4/test/update/bbcodeView.gd" id="1"]
[ext_resource type="Script" path="res://addons/gdUnit4/src/update/GdUnitUpdateClient.gd" id="6"]
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1")
[node name="HSplitContainer" type="HSplitContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
split_offset = 600
[node name="TextEdit" type="TextEdit" parent="HSplitContainer"]
layout_mode = 2
[node name="RichTextLabel" type="RichTextLabel" parent="HSplitContainer"]
use_parent_material = true
layout_mode = 2
tooltip_text = "test"
bbcode_enabled = true
[node name="GdUnitUpdateClient" type="Node" parent="."]
script = ExtResource("6")
[connection signal="text_changed" from="HSplitContainer/TextEdit" to="." method="_on_TextEdit_text_changed"]
[connection signal="meta_clicked" from="HSplitContainer/RichTextLabel" to="." method="_on_RichTextLabel_meta_clicked"]
[connection signal="meta_hover_ended" from="HSplitContainer/RichTextLabel" to="." method="_on_RichTextLabel_meta_hover_ended"]
[connection signal="meta_hover_started" from="HSplitContainer/RichTextLabel" to="." method="_on_RichTextLabel_meta_hover_started"]

View file

@ -0,0 +1,28 @@
[font_size=28]GdUnit3 v0.9.4 - Release Candidate[/font_size]
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
[font_size=24]Improvements[/font_size]
[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] Added project settings to configure:
[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] [b]Verbose Orphans[/b] to enable/disable report detected orphans
[img]res://addons/gdUnit4/tmp-update/119266895-e09d1900-bbec-11eb-91e9-45409ba2edb2.png[/img]
[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] [b]Server Connection Timeout Minites[/b] to set test server connection timeout in minutes
[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] [b]Test Timeout Seconds[/b] to set the default test case timeout in seconds
[img]res://addons/gdUnit4/tmp-update/119266875-d1b66680-bbec-11eb-856f-8fac9b0ed31c.png[/img]
test seperator
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
[font_size=24]Bugfixes[/font_size]
[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] GdUnit inspecor:
[img=12x12]res://addons/gdUnit4/src/update/assets/dot2.png[/img] Fixed invalid test case state visualisation for detected orphan nodes (#63)
[img=12x12]res://addons/gdUnit4/src/update/assets/dot2.png[/img] Fixed a ui bug to auto select the first report failure after a test run
[img=12x12]res://addons/gdUnit4/src/update/assets/dot2.png[/img] Fixed invalid visualisation state and error counter (#66)
[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] TestSuite:
[img=12x12]res://addons/gdUnit4/src/update/assets/dot2.png[/img] Using asserts on stage after() now reporting
[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] Core:
[img=12x12]res://addons/gdUnit4/src/update/assets/dot2.png[/img] The GdUnit network layer was replaced by a new TCP server/client architecture to enable network-related testing (#64 )

View file

@ -0,0 +1,40 @@
[font_size=32]Header 1 Text[/font_size]
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
[font_size=32][center]Header 1 Centered Text[/center][/font_size]
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
[font_size=28]Header 2 Text[/font_size]
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
[font_size=32][center]Header 2 Centered Text[/center][/font_size]
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
[font_size=32][center]Header 2 Centered Text
Multiline Test
Is here[/center][/font_size]
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
[font_size=24]Header 3 Text[/font_size]
[font_size=24][center]Header 3 Centered Text[/center][/font_size]
[font_size=20]Header 4 Text[/font_size]
[font_size=20][center]Header 4 Centered Text[/center][/font_size]
[font_size=16]Header 5 Text[/font_size]
[font_size=16][center]Header 5 Centered Text[/center][/font_size]
[font_size=12]Header 6 Text[/font_size]
[font_size=12][center]Header 6 Centered Text[/center][/font_size]

View file

@ -0,0 +1,20 @@
[font_size=32]Header 1 Text[/font_size]
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
[font_size=28]Header 2 Text[/font_size]
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
[font_size=24]Header 3 Text[/font_size]
[font_size=20]Header 4 Text[/font_size]
[font_size=16]Header 5 Text[/font_size]
[font_size=12]Header 6 Text[/font_size]

View file

@ -0,0 +1,9 @@
[table=2]
[cell][b] type [/b][/cell]|[cell][b] description[/b][/cell]
[cell]--------------[/cell]|[cell]--------------------------------------------[/cell]
[cell]any_color() [/cell]|[cell] Argument matcher to match any Color value[/cell]
[cell]any_vector2() [/cell]|[cell] Argument matcher to match any Vector2 value[/cell]
[cell]any_vector3() [/cell]|[cell] Argument matcher to match any Vector3 value[/cell]
[cell]any_rect2() [/cell]|[cell] Argument matcher to match any Rect2 value[/cell]
[/table]

View file

@ -0,0 +1,21 @@
<h1>Header 1 Text</h1>
<h1 align="center">Header 1 Centered Text</h1>
<h2>Header 2 Text</h2>
<h2 align="center">Header 2 Centered Text</h2>
<h2 align="center">Header 2 Centered Text
Multiline Test
Is here</h2>
<h3>Header 3 Text</h3>
<h3 align="center">Header 3 Centered Text</h3>
<h4>Header 4 Text</h4>
<h4 align="center">Header 4 Centered Text</h4>
<h5>Header 5 Text</h5>
<h5 align="center">Header 5 Centered Text</h5>
<h6>Header 6 Text</h6>
<h6 align="center">Header 6 Centered Text</h6>

Binary file not shown.

After

Width:  |  Height:  |  Size: 916 B

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://4d6aqwgnxyla"
path="res://.godot/imported/icon48.png-e87a81340792ea4239ce79ba4259a0dd.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://addons/gdUnit4/test/update/resources/icon48.png"
dest_files=["res://.godot/imported/icon48.png-e87a81340792ea4239ce79ba4259a0dd.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View file

@ -0,0 +1,168 @@
------ HTML Headers ---
[font_size=24]Header 1 Text[/font_size]
[font_size=24][center]Header 1Centered Text[/center][/font_size]
[font_size=20]Header 2 Text[/font_size]
[font_size=20][center]Header 2 Centered Text[/center][/font_size]
[font_size=20][center]Header 2 Centered Text
Multiline Test
Is here[/center][/font_size]
---
------ Markdown -------------
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
------ embeded ------
>This is an **embedded section**.
>The section continues here
>This is another **embedded section**.
>This section also continues in the second like
>- aba
>This line isnt embedded any more.
>- tets
> - aha
> - akaka
------ lists ------
* an asterisk starts an unordered list
* and this is another item in the list
+ or you can also use the + character
- or the - character
To start an ordered list, write this:
1. this starts a list *with* numbers
* this will show as number "2"
* this will show as number "3."
9. any number, +, -, or * will keep the list going.
* just indent by 4 spaces (or tab) to make a sub-list
1. keep indenting for more sub lists
* here i'm back to the second level
- Asserts:
- Added new `assert_vector2` to verify Vector2 values (#69 )
- Added new `assert_vector3` to verify Vector3 values (#69 )
- ahss
- kaka
- kaka
- kaka
- lll
- kkk
- Fuzzers:
- Added `rangev2` to generate random Vector2 values
- Added `rangev3` to generate random Vector3 values
- one or more fuzzers are now allowed for a test case (#71)
- GitHub Action
- Added GitHub action to automatic trigger selftest on push events (tests against Godot 3.2.3, 3.3, 3.3.1, 3.3.2) (#74 )
------ check lists ------
[ ] A
[x] B
[ ] C
------ code ------
This is `code`.
``This is all `code`.``
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```
```python
s = "Python syntax highlighting"
print s
```
```
No language indicated, so no syntax highlighting.
But let's throw in a <b>tag</b>.
```
------ links ------
Here is a [Link](https://example.com/ "Optional link title").
------ image ------
Inline-style:
![alt text](res://addons/gdUnit4/test/update/resources/icon48.png "Logo Title Text 1")
![alt text](https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png)
Reference-style:
![alt text][logo]
[logo]:res://addons/gdUnit4/test/update/resources/icon48.png "Logo Title Text 2"
------ Horizontal Rules ------
---
Hyphens
***
Asterisks
___
Underscores
------ table ------
|Column 1|Column 2|
|--------|--------|
| A | B |
| C | D |
Column 1|Column 2
--------|--------
A | B
C | D
------ foodnodes ------
You can easily place footnotes [^2] in the continuous text [^1].
[^1]: Here you can find the text for the footnote.
[^2]: **Footnotes** themselves can also be *formatted*.
And these even include several lines.
------ asterisk ------
This *is* an \*example with an asterisk\**.
This _is_ an \_example with an asterisk\_.
------ bold ------
<b>test</b>
**test**
__test__
------ italic ------
<i>test</i>
*test*
_test_
------ italic + bold ------
***Italic and Bold Text***
___Italic and Bold Text___
------ stroke ------
<s>test</s>
~test~
~~test~~

View file

@ -0,0 +1,22 @@
## GdUnit3 v0.9.4 - Release Candidate
### Improvements
- Added project settings to configure:
- <b>Verbose Orphans</b> to enable/disable report detected orphans
![image](https://user-images.githubusercontent.com/347037/119266895-e09d1900-bbec-11eb-91e9-45409ba2edb2.png)
- <b>Server Connection Timeout Minites</b> to set test server connection timeout in minutes
- <b>Test Timeout Seconds</b> to set the default test case timeout in seconds
![image](https://user-images.githubusercontent.com/347037/119266875-d1b66680-bbec-11eb-856f-8fac9b0ed31c.png)
test seperator
---
### Bugfixes
- GdUnit inspecor:
- Fixed invalid test case state visualisation for detected orphan nodes (#63)
- Fixed a ui bug to auto select the first report failure after a test run
- Fixed invalid visualisation state and error counter (#66)
- TestSuite:
- Using asserts on stage after() now reporting
- Core:
- The GdUnit network layer was replaced by a new TCP server/client architecture to enable network-related testing (#64 )

View file

@ -0,0 +1,6 @@
type | description
-- | --
any_color() | Argument matcher to match any Color value
any_vector2() | Argument matcher to match any Vector2 value
any_vector3() | Argument matcher to match any Vector3 value
any_rect2() | Argument matcher to match any Rect2 value

View file

@ -0,0 +1,11 @@
# Header 1 Text
## Header 2 Text
### Header 3 Text
#### Header 4 Text
##### Header 5 Text
###### Header 6 Text

View file

@ -0,0 +1,12 @@
extends GdUnitPatch
func _init():
super(GdUnit4Version.parse("v0.9.5"))
func execute() -> bool:
var patches := Array()
if Engine.has_meta(PATCH_VERSION):
patches = Engine.get_meta(PATCH_VERSION)
patches.append(version())
Engine.set_meta(PATCH_VERSION, patches)
return true

View file

@ -0,0 +1,12 @@
extends GdUnitPatch
func _init():
super(GdUnit4Version.parse("v0.9.6"))
func execute() -> bool:
var patches := Array()
if Engine.has_meta(PATCH_VERSION):
patches = Engine.get_meta(PATCH_VERSION)
patches.append(version())
Engine.set_meta(PATCH_VERSION, patches)
return true

View file

@ -0,0 +1,12 @@
extends GdUnitPatch
func _init():
super(GdUnit4Version.parse("v0.9.9-a"))
func execute() -> bool:
var patches := Array()
if Engine.has_meta(PATCH_VERSION):
patches = Engine.get_meta(PATCH_VERSION)
patches.append(version())
Engine.set_meta(PATCH_VERSION, patches)
return true

View file

@ -0,0 +1,12 @@
extends GdUnitPatch
func _init():
super(GdUnit4Version.parse("v0.9.9-b"))
func execute() -> bool:
var patches := Array()
if Engine.has_meta(PATCH_VERSION):
patches = Engine.get_meta(PATCH_VERSION)
patches.append(version())
Engine.set_meta(PATCH_VERSION, patches)
return true

View file

@ -0,0 +1,12 @@
extends GdUnitPatch
func _init():
super(GdUnit4Version.parse("v1.1.4"))
func execute() -> bool:
var patches := Array()
if Engine.has_meta(PATCH_VERSION):
patches = Engine.get_meta(PATCH_VERSION)
patches.append(version())
Engine.set_meta(PATCH_VERSION, patches)
return true

Binary file not shown.