| 1 |
[gd_scene load_steps=15 format=2] |
| 2 |
|
| 3 |
[ext_resource path="res://addons/gut/GutScene.gd" type="Script" id=1] |
| 4 |
[ext_resource path="res://addons/gut/fonts/AnonymousPro-Italic.ttf" type="DynamicFontData" id=2] |
| 5 |
[ext_resource path="res://addons/gut/fonts/AnonymousPro-Regular.ttf" type="DynamicFontData" id=3] |
| 6 |
[ext_resource path="res://addons/gut/fonts/AnonymousPro-BoldItalic.ttf" type="DynamicFontData" id=4] |
| 7 |
[ext_resource path="res://addons/gut/fonts/AnonymousPro-Bold.ttf" type="DynamicFontData" id=5] |
| 8 |
[ext_resource path="res://addons/gut/UserFileViewer.tscn" type="PackedScene" id=6] |
| 9 |
|
| 10 |
[sub_resource type="StyleBoxFlat" id=1] |
| 11 |
bg_color = Color( 0.192157, 0.192157, 0.227451, 1 ) |
| 12 |
corner_radius_top_left = 10 |
| 13 |
corner_radius_top_right = 10 |
| 14 |
|
| 15 |
[sub_resource type="StyleBoxFlat" id=2] |
| 16 |
bg_color = Color( 1, 1, 1, 1 ) |
| 17 |
border_color = Color( 0, 0, 0, 1 ) |
| 18 |
corner_radius_top_left = 5 |
| 19 |
corner_radius_top_right = 5 |
| 20 |
|
| 21 |
[sub_resource type="Theme" id=3] |
| 22 |
resource_local_to_scene = true |
| 23 |
Panel/styles/panel = SubResource( 2 ) |
| 24 |
Panel/styles/panelf = null |
| 25 |
Panel/styles/panelnc = null |
| 26 |
|
| 27 |
[sub_resource type="DynamicFont" id=4] |
| 28 |
font_data = ExtResource( 4 ) |
| 29 |
|
| 30 |
[sub_resource type="DynamicFont" id=5] |
| 31 |
font_data = ExtResource( 2 ) |
| 32 |
|
| 33 |
[sub_resource type="DynamicFont" id=6] |
| 34 |
font_data = ExtResource( 5 ) |
| 35 |
|
| 36 |
[sub_resource type="DynamicFont" id=7] |
| 37 |
font_data = ExtResource( 3 ) |
| 38 |
|
| 39 |
[sub_resource type="StyleBoxFlat" id=8] |
| 40 |
bg_color = Color( 0.192157, 0.192157, 0.227451, 1 ) |
| 41 |
corner_radius_top_left = 20 |
| 42 |
corner_radius_top_right = 20 |
| 43 |
|
| 44 |
[node name="Gut" type="Panel"] |
| 45 |
margin_right = 880.0 |
| 46 |
margin_bottom = 360.0 |
| 47 |
rect_min_size = Vector2( 740, 250 ) |
| 48 |
custom_styles/panel = SubResource( 1 ) |
| 49 |
script = ExtResource( 1 ) |
| 50 |
__meta__ = { |
| 51 |
"_edit_use_anchors_": false |
| 52 |
} |
| 53 |
|
| 54 |
[node name="UserFileViewer" parent="." instance=ExtResource( 6 )] |
| 55 |
margin_top = 388.0 |
| 56 |
margin_bottom = 818.0 |
| 57 |
|
| 58 |
[node name="TitleBar" type="Panel" parent="."] |
| 59 |
anchor_top = -0.000491047 |
| 60 |
anchor_right = 1.0 |
| 61 |
anchor_bottom = -0.000491047 |
| 62 |
margin_left = 1.0 |
| 63 |
margin_top = 1.17678 |
| 64 |
margin_right = -1.0 |
| 65 |
margin_bottom = 40.1768 |
| 66 |
theme = SubResource( 3 ) |
| 67 |
__meta__ = { |
| 68 |
"_edit_group_": true, |
| 69 |
"_edit_use_anchors_": false |
| 70 |
} |
| 71 |
|
| 72 |
[node name="Title" type="Label" parent="TitleBar"] |
| 73 |
anchor_right = 1.0 |
| 74 |
margin_bottom = 40.0 |
| 75 |
custom_colors/font_color = Color( 0, 0, 0, 1 ) |
| 76 |
text = "Gut" |
| 77 |
align = 1 |
| 78 |
valign = 1 |
| 79 |
|
| 80 |
[node name="Time" type="Label" parent="TitleBar"] |
| 81 |
anchor_left = 1.0 |
| 82 |
anchor_right = 1.0 |
| 83 |
margin_left = -105.0 |
| 84 |
margin_right = -53.0 |
| 85 |
margin_bottom = 40.0 |
| 86 |
custom_colors/font_color = Color( 0, 0, 0, 1 ) |
| 87 |
text = "9999.99" |
| 88 |
valign = 1 |
| 89 |
|
| 90 |
[node name="Maximize" type="Button" parent="TitleBar"] |
| 91 |
anchor_left = 1.0 |
| 92 |
anchor_right = 1.0 |
| 93 |
margin_left = -30.0 |
| 94 |
margin_top = 10.0 |
| 95 |
margin_right = -6.0 |
| 96 |
margin_bottom = 30.0 |
| 97 |
custom_colors/font_color = Color( 0, 0, 0, 1 ) |
| 98 |
text = "M" |
| 99 |
flat = true |
| 100 |
|
| 101 |
[node name="ScriptProgress" type="ProgressBar" parent="."] |
| 102 |
anchor_top = 1.0 |
| 103 |
anchor_bottom = 1.0 |
| 104 |
margin_left = 75.0 |
| 105 |
margin_top = -70.0 |
| 106 |
margin_right = 185.0 |
| 107 |
margin_bottom = -40.0 |
| 108 |
hint_tooltip = "Overall progress of executing tests." |
| 109 |
step = 1.0 |
| 110 |
__meta__ = { |
| 111 |
"_edit_use_anchors_": false |
| 112 |
} |
| 113 |
|
| 114 |
[node name="Label" type="Label" parent="ScriptProgress"] |
| 115 |
margin_left = -70.0 |
| 116 |
margin_right = -5.0 |
| 117 |
margin_bottom = 30.0 |
| 118 |
text = "Scripts" |
| 119 |
valign = 1 |
| 120 |
__meta__ = { |
| 121 |
"_edit_use_anchors_": false |
| 122 |
} |
| 123 |
|
| 124 |
[node name="xy" type="Label" parent="ScriptProgress"] |
| 125 |
visible = false |
| 126 |
margin_right = 110.0 |
| 127 |
margin_bottom = 30.0 |
| 128 |
text = "0/0" |
| 129 |
align = 1 |
| 130 |
valign = 1 |
| 131 |
__meta__ = { |
| 132 |
"_edit_use_anchors_": false |
| 133 |
} |
| 134 |
|
| 135 |
[node name="TestProgress" type="ProgressBar" parent="."] |
| 136 |
anchor_top = 1.0 |
| 137 |
anchor_bottom = 1.0 |
| 138 |
margin_left = 75.0 |
| 139 |
margin_top = -105.0 |
| 140 |
margin_right = 185.0 |
| 141 |
margin_bottom = -75.0 |
| 142 |
hint_tooltip = "Test progress for the current script." |
| 143 |
step = 1.0 |
| 144 |
__meta__ = { |
| 145 |
"_edit_use_anchors_": false |
| 146 |
} |
| 147 |
|
| 148 |
[node name="Label" type="Label" parent="TestProgress"] |
| 149 |
margin_left = -70.0 |
| 150 |
margin_right = -5.0 |
| 151 |
margin_bottom = 30.0 |
| 152 |
text = "Tests" |
| 153 |
valign = 1 |
| 154 |
__meta__ = { |
| 155 |
"_edit_use_anchors_": false |
| 156 |
} |
| 157 |
|
| 158 |
[node name="xy" type="Label" parent="TestProgress"] |
| 159 |
visible = false |
| 160 |
margin_right = 110.0 |
| 161 |
margin_bottom = 30.0 |
| 162 |
text = "0/0" |
| 163 |
align = 1 |
| 164 |
valign = 1 |
| 165 |
__meta__ = { |
| 166 |
"_edit_use_anchors_": false |
| 167 |
} |
| 168 |
|
| 169 |
[node name="TextDisplay" type="ColorRect" parent="."] |
| 170 |
anchor_right = 1.0 |
| 171 |
anchor_bottom = 1.0 |
| 172 |
margin_top = 40.0 |
| 173 |
margin_bottom = -110.0 |
| 174 |
color = Color( 0, 0, 0, 1 ) |
| 175 |
__meta__ = { |
| 176 |
"_edit_use_anchors_": false |
| 177 |
} |
| 178 |
|
| 179 |
[node name="RichTextLabel" type="RichTextLabel" parent="TextDisplay"] |
| 180 |
anchor_right = 1.0 |
| 181 |
anchor_bottom = 1.0 |
| 182 |
margin_left = 10.0 |
| 183 |
focus_mode = 2 |
| 184 |
custom_fonts/bold_italics_font = SubResource( 4 ) |
| 185 |
custom_fonts/italics_font = SubResource( 5 ) |
| 186 |
custom_fonts/bold_font = SubResource( 6 ) |
| 187 |
custom_fonts/normal_font = SubResource( 7 ) |
| 188 |
bbcode_enabled = true |
| 189 |
scroll_following = true |
| 190 |
selection_enabled = true |
| 191 |
__meta__ = { |
| 192 |
"_edit_use_anchors_": false |
| 193 |
} |
| 194 |
|
| 195 |
[node name="WaitingLabel" type="RichTextLabel" parent="TextDisplay"] |
| 196 |
anchor_top = 1.0 |
| 197 |
anchor_right = 1.0 |
| 198 |
anchor_bottom = 1.0 |
| 199 |
margin_top = -25.0 |
| 200 |
bbcode_enabled = true |
| 201 |
__meta__ = { |
| 202 |
"_edit_use_anchors_": false |
| 203 |
} |
| 204 |
|
| 205 |
[node name="Navigation" type="Panel" parent="."] |
| 206 |
self_modulate = Color( 1, 1, 1, 0 ) |
| 207 |
anchor_top = 1.0 |
| 208 |
anchor_bottom = 1.0 |
| 209 |
margin_left = 220.0 |
| 210 |
margin_top = -99.0 |
| 211 |
margin_right = 580.0 |
| 212 |
margin_bottom = 1.0 |
| 213 |
__meta__ = { |
| 214 |
"_edit_use_anchors_": false |
| 215 |
} |
| 216 |
|
| 217 |
[node name="Previous" type="Button" parent="Navigation"] |
| 218 |
margin_left = -20.0 |
| 219 |
margin_top = 44.0 |
| 220 |
margin_right = 65.0 |
| 221 |
margin_bottom = 84.0 |
| 222 |
hint_tooltip = "Previous script in the list." |
| 223 |
text = "|<" |
| 224 |
__meta__ = { |
| 225 |
"_edit_use_anchors_": false |
| 226 |
} |
| 227 |
|
| 228 |
[node name="Next" type="Button" parent="Navigation"] |
| 229 |
margin_left = 250.0 |
| 230 |
margin_top = 44.0 |
| 231 |
margin_right = 335.0 |
| 232 |
margin_bottom = 84.0 |
| 233 |
hint_tooltip = "Next script in the list. |
| 234 |
" |
| 235 |
text = ">|" |
| 236 |
__meta__ = { |
| 237 |
"_edit_use_anchors_": false |
| 238 |
} |
| 239 |
|
| 240 |
[node name="Run" type="Button" parent="Navigation"] |
| 241 |
margin_left = 70.0 |
| 242 |
margin_top = 44.0 |
| 243 |
margin_right = 155.0 |
| 244 |
margin_bottom = 84.0 |
| 245 |
hint_tooltip = "Run the currently selected item and all after it." |
| 246 |
text = ">" |
| 247 |
__meta__ = { |
| 248 |
"_edit_use_anchors_": false |
| 249 |
} |
| 250 |
|
| 251 |
[node name="CurrentScript" type="Button" parent="Navigation"] |
| 252 |
anchor_top = -0.01 |
| 253 |
anchor_bottom = -0.01 |
| 254 |
margin_left = -20.0 |
| 255 |
margin_top = -5.0 |
| 256 |
margin_right = 335.0 |
| 257 |
margin_bottom = 35.0 |
| 258 |
hint_tooltip = "Select a script to run. You can run just this script, or this script and all scripts after using the run buttons." |
| 259 |
text = "res://test/unit/test_gut.gd" |
| 260 |
clip_text = true |
| 261 |
__meta__ = { |
| 262 |
"_edit_use_anchors_": false |
| 263 |
} |
| 264 |
|
| 265 |
[node name="RunSingleScript" type="Button" parent="Navigation"] |
| 266 |
margin_left = 160.0 |
| 267 |
margin_top = 44.0 |
| 268 |
margin_right = 245.0 |
| 269 |
margin_bottom = 84.0 |
| 270 |
hint_tooltip = "Run the currently selected item. |
| 271 |
|
| 272 |
If the selected item has Inner Test Classes |
| 273 |
then they will all be run. If the selected item |
| 274 |
is an Inner Test Class then only it will be run." |
| 275 |
text = "> (1)" |
| 276 |
__meta__ = { |
| 277 |
"_edit_use_anchors_": false |
| 278 |
} |
| 279 |
|
| 280 |
[node name="LogLevelSlider" type="HSlider" parent="."] |
| 281 |
anchor_top = 1.0 |
| 282 |
anchor_bottom = 1.0 |
| 283 |
margin_left = 80.0 |
| 284 |
margin_top = -40.0 |
| 285 |
margin_right = 130.0 |
| 286 |
margin_bottom = -20.0 |
| 287 |
rect_scale = Vector2( 2, 2 ) |
| 288 |
max_value = 2.0 |
| 289 |
tick_count = 3 |
| 290 |
ticks_on_borders = true |
| 291 |
__meta__ = { |
| 292 |
"_edit_use_anchors_": false |
| 293 |
} |
| 294 |
|
| 295 |
[node name="Label" type="Label" parent="LogLevelSlider"] |
| 296 |
margin_left = -37.0 |
| 297 |
margin_right = 28.0 |
| 298 |
margin_bottom = 40.0 |
| 299 |
rect_scale = Vector2( 0.5, 0.5 ) |
| 300 |
text = "Log Level" |
| 301 |
valign = 1 |
| 302 |
__meta__ = { |
| 303 |
"_edit_use_anchors_": false |
| 304 |
} |
| 305 |
|
| 306 |
[node name="ScriptsList" type="ItemList" parent="."] |
| 307 |
anchor_bottom = 1.0 |
| 308 |
margin_left = 179.0 |
| 309 |
margin_top = 40.0 |
| 310 |
margin_right = 619.0 |
| 311 |
margin_bottom = -110.0 |
| 312 |
allow_reselect = true |
| 313 |
__meta__ = { |
| 314 |
"_edit_use_anchors_": false |
| 315 |
} |
| 316 |
|
| 317 |
[node name="DoubleClickTimer" type="Timer" parent="ScriptsList"] |
| 318 |
wait_time = 0.3 |
| 319 |
one_shot = true |
| 320 |
|
| 321 |
[node name="ExtraOptions" type="Panel" parent="."] |
| 322 |
anchor_left = 1.0 |
| 323 |
anchor_top = 1.0 |
| 324 |
anchor_right = 1.0 |
| 325 |
anchor_bottom = 1.0 |
| 326 |
margin_left = -212.0 |
| 327 |
margin_top = -260.0 |
| 328 |
margin_right = -2.0 |
| 329 |
margin_bottom = -106.0 |
| 330 |
custom_styles/panel = SubResource( 8 ) |
| 331 |
__meta__ = { |
| 332 |
"_edit_use_anchors_": false |
| 333 |
} |
| 334 |
|
| 335 |
[node name="IgnorePause" type="CheckBox" parent="ExtraOptions"] |
| 336 |
margin_left = 18.0 |
| 337 |
margin_right = 136.0 |
| 338 |
margin_bottom = 24.0 |
| 339 |
rect_scale = Vector2( 1.5, 1.5 ) |
| 340 |
hint_tooltip = "Ignore all calls to pause_before_teardown." |
| 341 |
text = "Ignore Pauses" |
| 342 |
__meta__ = { |
| 343 |
"_edit_use_anchors_": false |
| 344 |
} |
| 345 |
|
| 346 |
[node name="Copy" type="Button" parent="ExtraOptions"] |
| 347 |
margin_left = 15.0 |
| 348 |
margin_top = 40.0 |
| 349 |
margin_right = 195.0 |
| 350 |
margin_bottom = 80.0 |
| 351 |
hint_tooltip = "Copy all output to the clipboard." |
| 352 |
text = "Copy to Clipboard" |
| 353 |
__meta__ = { |
| 354 |
"_edit_use_anchors_": false |
| 355 |
} |
| 356 |
|
| 357 |
[node name="UserFiles" type="Button" parent="ExtraOptions"] |
| 358 |
margin_left = 15.0 |
| 359 |
margin_top = 90.0 |
| 360 |
margin_right = 195.0 |
| 361 |
margin_bottom = 130.0 |
| 362 |
hint_tooltip = "Copy all output to the clipboard." |
| 363 |
text = "View User Files" |
| 364 |
__meta__ = { |
| 365 |
"_edit_use_anchors_": false |
| 366 |
} |
| 367 |
|
| 368 |
[node name="ResizeHandle" type="Control" parent="."] |
| 369 |
anchor_left = 1.0 |
| 370 |
anchor_top = 1.0 |
| 371 |
anchor_right = 1.0 |
| 372 |
anchor_bottom = 1.0 |
| 373 |
margin_left = -40.0 |
| 374 |
margin_top = -40.0 |
| 375 |
|
| 376 |
[node name="Continue" type="Panel" parent="."] |
| 377 |
self_modulate = Color( 1, 1, 1, 0 ) |
| 378 |
anchor_left = 1.0 |
| 379 |
anchor_top = 1.0 |
| 380 |
anchor_right = 1.0 |
| 381 |
anchor_bottom = 1.0 |
| 382 |
margin_left = -150.0 |
| 383 |
margin_top = -100.0 |
| 384 |
margin_right = -30.0 |
| 385 |
margin_bottom = -10.0 |
| 386 |
|
| 387 |
[node name="Continue" type="Button" parent="Continue"] |
| 388 |
margin_left = -2.0 |
| 389 |
margin_top = 45.0 |
| 390 |
margin_right = 117.0 |
| 391 |
margin_bottom = 85.0 |
| 392 |
hint_tooltip = "When a pause_before_teardown is encountered this button will be enabled and must be pressed to continue running tests." |
| 393 |
disabled = true |
| 394 |
text = "Continue" |
| 395 |
__meta__ = { |
| 396 |
"_edit_use_anchors_": false |
| 397 |
} |
| 398 |
|
| 399 |
[node name="ShowExtras" type="Button" parent="Continue"] |
| 400 |
anchor_left = -0.0166667 |
| 401 |
anchor_right = -0.0166667 |
| 402 |
margin_left = 50.0 |
| 403 |
margin_top = -5.0 |
| 404 |
margin_right = 120.0 |
| 405 |
margin_bottom = 35.0 |
| 406 |
rect_pivot_offset = Vector2( 35, 20 ) |
| 407 |
hint_tooltip = "Show/hide additional options." |
| 408 |
toggle_mode = true |
| 409 |
text = "_" |
| 410 |
__meta__ = { |
| 411 |
"_edit_use_anchors_": false |
| 412 |
} |
| 413 |
|
| 414 |
[node name="Summary" type="Node2D" parent="."] |
| 415 |
position = Vector2( 0, 3 ) |
| 416 |
|
| 417 |
[node name="Passing" type="Label" parent="Summary"] |
| 418 |
visible = false |
| 419 |
margin_left = 5.0 |
| 420 |
margin_top = 7.0 |
| 421 |
margin_right = 45.0 |
| 422 |
margin_bottom = 21.0 |
| 423 |
custom_colors/font_color = Color( 0, 0, 0, 1 ) |
| 424 |
text = "0" |
| 425 |
align = 1 |
| 426 |
valign = 1 |
| 427 |
__meta__ = { |
| 428 |
"_edit_use_anchors_": false |
| 429 |
} |
| 430 |
|
| 431 |
[node name="Failing" type="Label" parent="Summary"] |
| 432 |
visible = false |
| 433 |
margin_left = 100.0 |
| 434 |
margin_top = 7.0 |
| 435 |
margin_right = 140.0 |
| 436 |
margin_bottom = 21.0 |
| 437 |
custom_colors/font_color = Color( 0, 0, 0, 1 ) |
| 438 |
text = "0" |
| 439 |
align = 1 |
| 440 |
valign = 1 |
| 441 |
|
| 442 |
[node name="AssertCount" type="Label" parent="Summary"] |
| 443 |
margin_left = 5.0 |
| 444 |
margin_top = 7.0 |
| 445 |
margin_right = 165.0 |
| 446 |
margin_bottom = 21.0 |
| 447 |
custom_colors/font_color = Color( 0, 0, 0, 1 ) |
| 448 |
text = "Assert count" |
| 449 |
__meta__ = { |
| 450 |
"_edit_use_anchors_": false |
| 451 |
} |
| 452 |
[connection signal="mouse_entered" from="TitleBar" to="." method="_on_TitleBar_mouse_entered"] |
| 453 |
[connection signal="mouse_exited" from="TitleBar" to="." method="_on_TitleBar_mouse_exited"] |
| 454 |
[connection signal="draw" from="TitleBar/Maximize" to="." method="_on_Maximize_draw"] |
| 455 |
[connection signal="pressed" from="TitleBar/Maximize" to="." method="_on_Maximize_pressed"] |
| 456 |
[connection signal="gui_input" from="TextDisplay/RichTextLabel" to="." method="_on_RichTextLabel_gui_input"] |
| 457 |
[connection signal="pressed" from="Navigation/Previous" to="." method="_on_Previous_pressed"] |
| 458 |
[connection signal="pressed" from="Navigation/Next" to="." method="_on_Next_pressed"] |
| 459 |
[connection signal="pressed" from="Navigation/Run" to="." method="_on_Run_pressed"] |
| 460 |
[connection signal="pressed" from="Navigation/CurrentScript" to="." method="_on_CurrentScript_pressed"] |
| 461 |
[connection signal="pressed" from="Navigation/RunSingleScript" to="." method="_on_RunSingleScript_pressed"] |
| 462 |
[connection signal="value_changed" from="LogLevelSlider" to="." method="_on_LogLevelSlider_value_changed"] |
| 463 |
[connection signal="item_selected" from="ScriptsList" to="." method="_on_ScriptsList_item_selected"] |
| 464 |
[connection signal="pressed" from="ExtraOptions/IgnorePause" to="." method="_on_IgnorePause_pressed"] |
| 465 |
[connection signal="pressed" from="ExtraOptions/Copy" to="." method="_on_Copy_pressed"] |
| 466 |
[connection signal="pressed" from="ExtraOptions/UserFiles" to="." method="_on_UserFiles_pressed"] |
| 467 |
[connection signal="mouse_entered" from="ResizeHandle" to="." method="_on_ResizeHandle_mouse_entered"] |
| 468 |
[connection signal="mouse_exited" from="ResizeHandle" to="." method="_on_ResizeHandle_mouse_exited"] |
| 469 |
[connection signal="pressed" from="Continue/Continue" to="." method="_on_Continue_pressed"] |
| 470 |
[connection signal="draw" from="Continue/ShowExtras" to="." method="_on_ShowExtras_draw"] |
| 471 |
[connection signal="toggled" from="Continue/ShowExtras" to="." method="_on_ShowExtras_toggled"] |