Releases: xp-framework/unittest
Releases · xp-framework/unittest
10.1.0: Test arguments
- Extended
TestSuite::runTest()
to accept TestGroup
and XPClass
in addition to TestCase
instances
(@thekid)
- Fixed Class T does not have a constructor, so you cannot pass any
constructor arguments when running baseless tests with -a ...
.
(@thekid)
10.0.0: Baseless, single-instance test classes
- Implemented feature #36 (Baseless, single-instance test classes).
Heads up: This breaks API compatibility if you have written your
own test actions: These now accept unittest.Test
instances instead
of unittest.TestCase! The unittest runner itself remains unchanged
and can now run both TestCase instances as well as the new baseless
test classes.
- Merged PR #38: Backwards compatible Listener API
- Merged PR #37: Baseless, single-instance tests
(@thekid)
9.7.1: PHP 7.4 compatibility
- Rewrote
unittest.actions.VerifyThat
to no longer user the deprecated
call_user_func()
function.
(@thekid)
- Made compatible with PHP 7.4 - refrain using
{}
for string offsets
(@thekid)
9.7.0: Metrics
- Merged pull request #34: Add metrics to TestResult. This adds the
possibility for listeners to integrate metrics inside the test result
output, e.g. coverage. See also issue #33
(@thekid)
9.6.1: Test outcome comparison fix
- Fixed lang.Error (Class 'unittest\Objects' not found) error when
comparing two test outcomes
(@thekid)
9.6.0: PrerequisitesFailedError
- Merged pull request #31: Add possibility to fail all tests from within
@beforeClass
methods
(@thekid)
9.5.1: FolderSource fix
- Fixed #30: Cannot find any test cases in xp.unittest.sources.FolderSource
(@thekid)
9.5.0: Folder iteration
- Merged PR #29: Allow passing subfolders directly as source, only
running the tests therein as a consequence. Previously, the class
loader was simply queried for all classes inside any loader the given
path was a part of.
(@thekid)
9.4.2: File loading fix
- Allowed all file names as arguments to test suite runner, not just
.class.php
. Instead, delegate determining classes from passed URIs
to the class loading mechanism. This fixes xp test path/to/Test.php
not working in conjunction with the XP Compiler.
(@thekid)
9.4.1: Remove deprecated xp::stringOf() usage
- Merged PR #28: Replace all occurrences of
xp::stringOf()
with
Objects::stringOf()
(the former has been deprecated since XP9)
(@thekid)