Skip to content

Releases: deltics/deltics.smoketest

Release v2.9.1

21 Mar 07:52
da29d07
Compare
Choose a tag to compare

Fix to ensure that AssertFactory.QueryInterface returns S_OK when a custom assert factory extension is obtained. Previously the result was undefined.

Release v2.9.0

08 Mar 03:27
492b5e5
Compare
Choose a tag to compare

Added AnsiCharAssertions and fixed some type casting issues

Release v2.8.2

06 Mar 07:41
3520206
Compare
Choose a tag to compare

Fixes to encoding of international and supplementary Unicode characters in test results

Release v2.8.0

26 Feb 23:17
9d7db32
Compare
Choose a tag to compare

Improved Unicode support.

  • Assertions for Utf8 and Wide Char values
  • Test metadata is now represented as UnicodeString (or WideString) consistently. This includes test label/value name, values expressed as strings and assertion results

Release v2.7.2

22 Feb 08:15
b8f98da
Compare
Choose a tag to compare

Fixes a minor issue in the encoding of Utf16 chars in attributes of xUnit2 test result output by ensuring that orphaned surrogates are encoded as code point references (U+DC00) rather than XML entities, since XML decoders may reject such entities as invalid (missing their surrogate partner).

This affected test result publication in Azure DevOps pipelines, for example.

Release v2.7.1

05 Feb 23:19
Compare
Choose a tag to compare

Introduced Double Assertions

Release v2.6.0

05 Feb 23:04
359b21b
Compare
Choose a tag to compare

Introduced Interface assertions

Release v2.5.2

25 Jan 07:23
8fe79b1
Compare
Choose a tag to compare
  • New assertions added for Utf8Strings
  • Non-overload assertions for Date, DateTime and Utf8String values available in all Delphi versions (even those where the overloaded Assert() methods are supported) to enable version-agnostic tests to be written more easily
  • Unicode and Ansi strings explicitly converted in Utils (for representation in test outputs)

Release v2.5.1

23 Jan 06:28
3efc077
Compare
Choose a tag to compare

Added Boolean assertions. These are "compatible" with the previous version but allow for explicit testing for FALSE values (rather than relying on inverting naive TRUE assertions).

Where previously you would write Test('SomeBool').Assert(NOT SomeBool);
you can now write Test('SomeBool').Assert(SomeBool).IsFALSE;

You may continue to use the abbreviated form. The tests will still be performed and will only pass if the Assert'ed expression evaluates as TRUE.

Release v2.5.0

03 Jan 00:55
2dca513
Compare
Choose a tag to compare
  • Additional assertions for Pointer tests
    • DoesNotEqual - tests that a pointer does not have a specified value
    • HasUnequalBytes - tests that a pointer references bytes that are different to bytes referenced by another pointer
    • IsNotNIL - tests that a pointer is not NIL
  • Addition assertions for String tests
    • Contains / ContainsText - tests that a string contains a substring (with or without respect for case)
    • DoesNotContain / DoesNotContainText - tests that a string does NOT contain a substring
    • IsEmpty - tests that a string is empty
    • IsNotEmpty - tests that a string is not empty
  • RaisedException / RaisesException are deprecated and replaced by the functionality identical but simplified Raised() and Raises() tests

This release also fixes an issue where calling RaisedException (or now also Raised) outside of an except block could cause the Smoketest runtime to hang or crash (Issue #21). The runtime now raises an EInvalidTest exception if Raised or Raises are called in an inappropriate context.

i.e. Raises must be called with no exception object in scope. Raised must be called when there is an exception object.