Skip to content

Releases: sbergen/Responsible

v4.5.0

25 May 16:41
437b3b4
Compare
Choose a tag to compare

Added

  • Added support for Unity 2022
  • Added RepeatUntil extension on test instruction
  • Added documentation for experimental Godot support

Changed

  • Never collapse responders in state strings (even when completed or not executed).
    More info is better here.
  • Responsible.Bdd no longer considered experimental.

Fixed

  • Fix path trimming (start from "Assets") in failure messages on Windows
  • Internal tests: Fix some tests that didn't work properly depending on platform and/or locale

Removed

  • Dropped support for Unity 2019 and 2020

v4.4.0

23 Mar 21:25
abb643e
Compare
Choose a tag to compare

Added

  • RunAsLoop and RunAsSimulatedUpdateLoop operators, for running test instructions synchronously as a loop with a tick callback.
  • Repeatedly operator, which turns a test responder into an optional responder that executes repeatedly.

Changed

  • Include hint in state strings about being able to provide extra context to wait conditions
  • Improve exception message handling by not truncating long messages (I don't remember why I did this originally)
  • Add a bit of padding to the Unity operation status window

Fixed

  • Fix some state strings on Windows, where Environment.NewLine is more than one character.
  • Fix some cancellation issues with Unity 2021 (where cancellation might happen asynchronously later in the same frame)

v4.3.0

17 Apr 15:41
7be07d1
Compare
Choose a tag to compare

Added

  • New GroupedAs operator to allow more control over the state strings of compound operations.
  • Experimental: New BDD-style keywords to build scenarios.
  • Experimental: responsible-gherkin dotnet tool to convert Gherkin feature specifications into Responsible test stubs.
    This is a separate NuGet package, and will not have a changelog until there's a 1.0 release.
    Feel free to try it out by installing with dotnet tool install -g Beatwaves.ResponsibleGherkin

v4.2.0

13 Oct 17:20
c988ef5
Compare
Choose a tag to compare

Added

  • Allow passing a list of exceptions to be rethrown, instead of wrapped in TestFailureException. This allows e.g. NUnit's IgnoreException to function properly.

Fixed

  • Long descriptions in the operation state window no longer cause tests to fail because Unity spits out an error about too many vertices in a Label.
  • Make NUnit's Assert.Ignore, Assert.Inconclusive, and Assert.Pass work properly on Unity (see Added section above for .NET).

v4.1.2

16 Jul 21:28
e439c10
Compare
Choose a tag to compare

Fixed

  • TestInstructionExecutor.Dispose no longer throws an exception if called twice.
  • Sequence will no longer include duplicate entires in the test instruction stack section of error messages.

Changed

  • Use X s ≈ Y frames instead of X s and Y frames in output to clarify the meaning.
  • Add stack trace to UnhandledLogMessageException.Message
  • Unity: Intercept errors logged from non-Unity threads also.

v4.1.1

20 May 15:58
ac0df7d
Compare
Choose a tag to compare

Fixed

  • Fix error handling in ContinueWith and AndThen to publish the correct exception. This was previously causing an internal exception to be published instead under certain conditions.

Changed

  • Change responder state string from EXPECTED WITHIN to CONDITION EXPECTED WITHIN to better reflect what it actually does.

v4.1.0

13 May 06:58
eddfcbf
Compare
Choose a tag to compare

Fixed

  • Fix description of Return.
  • Handle source paths not under project gracefully when executing in Unity Editor.
  • Fix state string if ContinueWith or AndThen continuation function throws an exception.

Changed

  • Handle aborting tests better in the Unity state window.
  • Simplify unnecessarily complex timeout time formatting.
  • Allow passing IGlobalContextProvider to UnityTestInstructionExecutor.

v4.0.0

28 Mar 19:56
7e9077d
Compare
Choose a tag to compare

Changed

  • Removed the UniRx dependency, now uses async/await internally instead.
  • Unity-specific functionality was moved to work through abstractions.
  • Unit-typed operators now use object instead. This works better most of the time, due to covariance!
  • Operation state notifications use a callback instead of an observable.

Removed

  • All observable-related functions (ToObservable, WaitForLast).
  • AsUnit... operators: you can use BoxResult or just implicit covariance instead.

Added

  • Support for .NET standard 2.0 (and NuGet publishing)
  • ToTask methods, which replace ToObservable. Note: If you were using these, you can use the UniRx ToObservable method to convert a task to an observable.
  • UnityTestInstructionExecutor, which should provide the same functionality as TestInstructionExecutor did before.
  • BoxResult operators: replace AsUnit... operators when working with value types.
  • WaitForTask operator.
  • Support for adding extra global context into failure messages.

v3.0.1

14 Mar 20:17
367e9dd
Compare
Choose a tag to compare

Fixed

  • Fix inclusion of documentation in releases, no changes in the library itself.

v3.0.0

14 Mar 19:42
42f9742
Compare
Choose a tag to compare

Added

  • HTML documentation generated with DocFX
  • Test operation status window in Unity Editor, under Window/Responsible/Operation State

Changed

  • Some parameters renamed for better documentation.

Removed

  • Classes and functionality which was intended to be internal, was marked as internal.