Skip to content

Releases: MikeSchulze/gdUnit3

GdUnit3 v1.0.6

07 Oct 18:21
Compare
Choose a tag to compare

GdUnit3 v1.0.6


Improvements

  • added assert_func to allow to wait for a specific return value #154

  • added assert_signal to wait for a specific signal until a specific time #155

  • Added -conf option to Command Line Tool to load latest test execution configuration (#163)

  • Scene Runner

    • Added simulate_until_object_signal to wait for a specific object signal #149 (Thanks to @derkork )
    • Added wait_func to wait for a specific return value #154
    • Added wait_emit_signal to wait for a specific signal until a specific time #155

Bug Fixes

  • fixed error line detection, yielding in test was resulting in wrong line number detection
  • fixed running a test from inspector where uses fuzzing runs significant longer than run on cmd tool. #162
  • fixed spy on a script that preloads another script #166

GdUnit3 v1.0.5

07 Sep 09:10
Compare
Choose a tag to compare

GdUnit3 v1.0.5 - Critical patch for MacOS


!!ATTENTION!!

Please Read this before!

After upgrading a restart of Godot is strongly recommended

If Godot hangs kill the Godot process manually

After upgrading and fresh start the Godot should close normally


Bug Fixes

  • MacOS: Fixes Godot crashes when closing #144

GdUnit3 v1.0.4

05 Sep 18:02
ad8257a
Compare
Choose a tag to compare

GdUnit3 v1.0.4


!!ATTENTION!!

After upgrading a restart of Godot is strongly recommended


Improvements

  • Improve the value extractor extr to support a function chaining #133
  • Add ignore return_value_discarded and unused_argument as default to generated test suite #135
  • Small performance improvement to update the GdUnitInspector items #138
  • Added Godot 3.3.3, mono-3.3.3 to CI pipeline
  • The assetlib version now not shows .gitmodules when download the plugin #140
  • GdUnitToolsDialog : The TestSuite template is now customizable #142
    image

Bug Fixes

  • GdUnitToolsDialog : fix show release info on windows by normalizite text
  • GdUnitToolsDialog : Fix problems after upgrade from 1.0.2 to 1.0.3
  • Running tests from the context menu in Godot 3.3.3 fails under certain circumstances fixed #141

GdUnit3 v1.0.3

18 Aug 18:34
Compare
Choose a tag to compare

GdUnit3 v1.0.3


!!ATTENTION!!

After upgrading to 1.0.3, a restart of Godot is strongly recommended

For more details see GD-139: Plugin is broken after Update from 1.0.2 to 1.0.3


Improvements

  • GdUnit3Inspector
    • Changes wiki button to doc tool button
    • Added new tool button to configure GdUnit3 Settings (#89 )
      image
      • The dialog provides buttons to report a bug or feature and install examples
      • A better GdUnit3 settings page with help text for each property
        image
  • ArrayAssert
    • You can now use function name chaning on extract functions by using function names separated by a dot #133
    # get_parent.get_name -> like get_parent().get_name() to extraxt the name from the parent
    assert_arrary(nodes).extract("get_parent.get_name").contains("name_a", "name_b")
    

Bug Fixes

  • Fixes update was failing on Windows with multiple installed tar tools #113
  • Fixes update bug that incorrectly uses a previously installed update data #124
  • Allow to extend a existing test suite by resource path #131
    extends "res://tests/BaseTest.gd"

GdUnit3 v1.0.2

31 Jul 11:09
b89d8f4
Compare
Choose a tag to compare

GdUnit3 v1.0.2


Improvements

  • GdUnitArrayAssert
    • Added contains_exactly_in_any_order to GdUnitArrayAssert #122
      • improved error messages for contains, contains_exactly
  • Scene testing
    • Add time shift function to GdUnitSceneRunner to speedup scene simulation #120
	# Sets how fast or slow the scene simulation is processed (clock ticks versus the real).
	# It defaults to 1.0. A value of 2.0 means the game moves twice as fast as real life,
	# whilst a value of 0.5 means the game moves at half the regular speed.
	func set_time_factor(time_factor := 1.0) -> GdUnitSceneRunner:
	# Simulates scene processing for a certain number of frames
	# frames: amount of frames to process
	func simulate_frames(frames: int) -> GdUnitSceneRunner:

Example

	_runner = scene_runner(_scene)
	# set time factor to 10 to simulate the scene very fast
	_runner.set_time_factor(10)

	# run the scene for 10 frames
	yield(_runner.simulate_frames(10), "completed")

Bug Fixes

  • fixes invalid update states on the inspector for test-suites with same names #117

GdUnit3 v1.0.1

26 Jul 15:34
99b5e68
Compare
Choose a tag to compare

GdUnit3 v1.0.1


Improvements

  • GdUnit Inspector
    • Test-Suite item shows now a counter which displays the success/total count #116
      image

      Many thanks to @Wcubed who implemented this feature

Bug Fixes

  • fixes broken auto-update when unpacking update.zip under Linux #111

GdUnit3 v1.0.0

19 Jul 18:32
910d61e
Compare
Choose a tag to compare

GdUnit3 v1.0.0 - The first production-ready release


Improvements

  • SceneRunner

    • added simulate
     # Simulates scene processing for a certain number of frames by given delta peer frame
     # frames: amount of frames to process
     # delta_peer_frame: the time delta between a frame in ms
     func simulate(frames: int, delta_peer_frame :float) -> GdUnitSceneRunner:
    
    • added simulate_until_signal
    # Simulates scene processing until the given signal is emited by the scene
    # signal_name: the signal to stop the simulation
    # arg..: optional signal arguments to be match for stop
    func simulate_until_signal(signal_name :String, arg0 = null, arg1 = null, arg2 = null, arg3 = null, arg4 = null, arg5 = null) -> GdUnitSceneRunner:
    
  • Spy

    • allows now to use the resource path to build a spy from a scene
      spy(<scene path>)
  • Advanced Example

    • added Room3dDemo as show case how to use the new scene runner simulate functions

Bug Fixes

  • fix problems with freeing scene runner after test run

GdUnit3 v0.9.7-rc

10 Jul 12:36
fda1e7e
Compare
Choose a tag to compare

GdUnit3 v0.9.7 - Release Candidate


Improvements

  • Added Update Notifier to be notify for a new GdUnit3 version is abailable
    image

    • The update is shown on startup when a higher GdUnit version is available on Github
    • The popup shows the release info
    • Pressing the update button will install the latest version without any extra steps
  • Fuzzers:

    • Fuzzers.rand_str(<min>, <max>, <pattern>) added new fuzzer to generate random string by given pattern

Bug Fixes

  • General
    • Console shows errors when install GdUnit3 v0.9.6-rc over the AssetLib on MacOS ( #99 )
    • Fix using add_child on before() in test suites do not break the API (#106 )
    • Fix orphan nodes detected on export via command line (#102)
  • Asserts
    • Fix stack overflow on assert_str().is_equal() on large values (#100 )

GdUnit 0.9.6-rc

13 Jun 19:24
Compare
Choose a tag to compare

GdUnit3 v0.9.6 - Release Candidate


General Changes

  • Moved GdCommon packed to GdUnit3 core
  • Renamed examples package to gdUnit3-examples

Improvements

  • Asserts:
    • assert_that() now alowes to test on non build-in type (#81 )
  • Inspector
    • Added navigation buttons to spep to next or previous failure (#83 )

Bug Fixes

GdUnit3 0.9.5-rc

03 Jun 17:51
4711a16
Compare
Choose a tag to compare

GdUnit3 v0.9.5 - Release Candidate


Improvements

  • Asserts:
    • Added new assert_vector2 to verify Vector2 values (#69 )
    • Added new assert_vector3 to verify Vector3 values (#69 )
  • 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 )

Bug Fixes