Gut Versions Save

Godot Unit Test. Unit testing tool for Godot Game Engine.

v7.4.3

2 months ago

What's Changed

Full Changelog: https://github.com/bitwes/Gut/compare/v7.4.2...v7.4.3

v9.2.1

2 months ago

What's Changed

  • Issue #570 Doubling scripts that contain a statically typed variable of another class_name script (var foo := Foo.new() where foo is a class_name in another script) could cause errors.
  • Add support for running tests through the debugger via VSCode via the gut-extension.

Full Changelog: https://github.com/bitwes/Gut/compare/v9.2.0...v9.2.1

v7.4.2

3 months ago

7.4.2

  • Issue #485 GUT prints a warning and ignores scripts that do not extend GutTest.
  • Documentation changes for readthedocs.
  • Issue #436 Doubled Scenes now retain export variable values that were set in the editor.
  • Issue #547 GutPanel now saves output_font_name and output_font_size correctly.
  • Issue #450 yield timer is now stopped to avoid possible leaking of yield time between tests.

New Contributors

Full Changelog: https://github.com/bitwes/Gut/compare/v7.4.1...v7.4.2

v9.2.0

3 months ago

9.2.0

Configuration Changes

  • The GUT Panel config is now auto-saved/loaded to user:// instead of res://. This file changes a lot and is very annoying with version control and teams that have more than one person (which is all teams since there is no "I" in team).
    • The new location is user://gut_temp_directory/gut_editor_config.json
    • When you open your project, GUT will check to see if there is a file in the new location. If not, it will copy it there.
    • GUT prints a warning to `Output`` telling you that you can delete the old file.
  • You can now Save/Load configs to/from anywhere through the Settings Subpanel.
    • Saving/Loading does not change where the GUT panel auto-saves/loads to.
    • This allows you to define standard config files for your project, but not save any changes in a version controlled file (unless you explicitly resave it using the cool new Save As button).
  • The GUT Panel Shortcuts config file has also been moved. GUT also moves this file automatically and prints a warning.
    • The new location is user://gut_temp_directory/gut_editor_shortcuts.cfg
  • All files that were being saved in user:// have been moved to user://gut_temp_directory for better house keeping.

Features

  • The Settings Subpanel now has on/off switches for directories, so you can turn them off if you want to run a subset of tests.
  • Wiki moved to https://gut.readthedocs.io

Bug Fixes

  • Issue #479 source_code_pro.fnt was malformed, is now bienformed.
  • Issue #549 @andrejp88 debug/gdscript/warnings/untyped_declaration as error would break GUT due to dynamic code generation.
  • Issue #536 Theme refernces font instead of embedding it.
  • Issue #523 "got" values are printed with extra precision for float, Vector2, and Vector3 when using assert_almost_eq, assert_almost_ne, assert_between and assert_not_between.
  • Issue #436 Doubled Scenes now retain export variable values that were set in the editor.
  • Issue #547 The output_font_name and output_font_size for the GutPanel are now saved.
  • PR #544 (@xorblo-doitus) InputSender will now emit the gui_input signal on receivers.
  • Issue #473 Moved gut panel settings and gut options out of res:// so that multiple devs won't fight over files that are really user preferences.
    • Created some Editor Preferences for Gut to handle user only settings.
    • When running GUT from the editor, the config used by the runner is saved to user:// now.
    • You can load and save configs through the editor, so you can have a base set of settings that are not overwritten when running Gut.
    • Moved all files that Gut creates in user:// to user://gut_temp_directory.
    • Output Subanel related settings have moved to the Output Subpanel. Use the "..." button.
  • Issue #557 Tests are now found in exported projects.
  • Fixed issue where the panel was not loading the double strategy correctly.
  • Issue #542 GUT no longer generates orphans...again.

New Contributors

Full Changelog: https://github.com/bitwes/Gut/compare/v9.1.1...v9.2.0

v9.1.1

5 months ago
  • Fixed numerous issues with doubling that were caused by the port from 3.x. Most of these involved using the INCLUDE_NATIVE doubling strategy.
  • Added errors and better failure messages when trying to stub or spy on an invalid method. For example, if your script does not implement _ready and you try to spy on it, your test will now fail since _ready is virtual and you didn't overload it.
  • Doubled methods that have a vararg argument are now auto detected and extra parameters (up to 10) are added to the method signature to handle most use cases (i.e. rpc_id, emit_signal). If you call a doubled method that has a vararg argument and you have not stubbed param_count on the object's script then a warning is generated.
  • Fixed an issue where command line would not launch in 4.2rc1.
  • Issue #510 Added all types to strutils to address #510.
  • Issue #525 Signals are now disconnected when waiting on signals that do not fire in the expected amount of time.

v9.1.0

10 months ago

9.1.0 (requires Godot 4.1)

  • GUT generated errors now cause tests to fail (not engine errors, just things GUT thinks are bad). You can disable this through the CLI, .gutconfig, or the panel.
  • Changes to Double Strategy and Double/Partial Double creation to fix #482.
    • See Double-Strategy in the wiki for more information.
    • The default strategy has been changed back to SCRIPT_ONLY (a bug caused it to change). Due to how the Godot Engine calls native methods, the overrides may not be called by the engine so spying and stubbing may not work in some scenarios.
    • Doubling now disables the Native Method Override warning/error when creating Doubles and Partial Doubles. The warning/error is turned off and then restored to previous value after a Double or Partial Double has been loaded.
    • The doubling strategy INCLUDE_SUPER has been renamed to INCLUDE_NATIVE.
    • If you have an invalid Double Strategy set via command line or gutconfig, the default will be used. So if you are explicity setting it to the old INCLUDE_SUPER, it will use SCRIPT_ONLY.
    • You can now set the default double strategy in the GutPanel in the Editor.
  • Added GutControl to aid in running tests in a deployed game. Instructions and sample code can be found in the wiki.
  • Issue 485 GUT prints a warning and ignores scripts that do not extend GutTest.
  • A lot of internal reworkings to simplify logging and info about test statuses. The summary changed and the final line printed by GUT is now the highest severity status of the run (i.e. failed > pending/risky > passed).
  • Issue 503 Fixed issue where GUT would not find script object when doubling PackedScenes.
  • Port PR 409 GUT's simulate function can now check is_processing and is_physics_processing when running thier respective methods.

v9.0.1

1 year ago

Fixed a bug where you could not double scripts that used the new Godot 4 accessors.

v9.0.0

1 year ago

This is the initial release of GUT for Godot 4.0. Going forward, GUT 9+ will support Godot 4. GUT 7+ will support Godot 3.x.

GUT 9.0.0 will live in the godot_4 branch of the repo. Eventually it will move to main as Godot 3.x support is not needed. You should read Gut's Godot 4 README for information about what has changed.

What's Changed

New Contributors

Full Changelog: https://github.com/bitwes/Gut/compare/v7.3.0...v9.0.0

v7.4.1

1 year ago

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!

v7.4.0

1 year ago

7.4.0

Features

  • Issue 354 Doubles and partial doubles can now be instanced with parameters
    • You can now specify parameters when instancing a double/partial double:
      var dbl = double(MyClass).new(1, 2, 'c')
    • You can now spy on _init to verify parameter values:
      assert_called(my_inst, '_init', [1, 2, 'c'])
    • You can now stub default parameter values for _init:
      stub(MyClass, '_init').param_defaults([1, 2, 'c'])
  • Issue 363 GUT In-Editor Panel Improvements
    • New, super fancy, Tree Panel that shows your failing/pending/risky tests. Click an element in the tree, go to that line in the file AND that line in the output.
    • You can toggle the visibility of Settings, Output, and Tree panels.
    • You can search the output.
    • Some nice editor icons to make things look slick.
  • Issue 375 You can change the suffix of your test files. Example: _foo.gd.

Misc

  • Yield messages are now disabled on log level 0.
  • Tests that do not assert are included in the summary as "risky".
  • Test totals in various places have been adjusted to display a passing count and total count.
  • Running a single test script is faster now. Gut no longer parses scripts with non-matching names.

Bug Fixes

  • Issue 288 First yield in a test does not cause a .4 second delay.
  • Issue 368 Doubling WebSocketClient and anything with a PoolStringArray default value.
  • Issue 387 Introduced auto_flush_input to InputSender to address that Input.use_accumulate_input is enabled by default in Godot 3.5.0.