Releases: deltics/deltics.smoketest
Release v2.9.1
Release v2.9.0
Added AnsiCharAssertions and fixed some type casting issues
Release v2.8.2
Fixes to encoding of international and supplementary Unicode characters in test results
Release v2.8.0
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
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
Introduced Double Assertions
Release v2.6.0
Introduced Interface assertions
Release v2.5.2
- 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
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
- 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.