Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Releases: xp-framework/unittest

10.1.0: Test arguments

17 Nov 12:33
Compare
Choose a tag to compare
  • 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

06 Oct 14:17
Compare
Choose a tag to compare
  • 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

22 Aug 16:35
Compare
Choose a tag to compare
  • 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

16 Sep 19:23
Compare
Choose a tag to compare
  • 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

14 Sep 19:53
Compare
Choose a tag to compare
  • Fixed lang.Error (Class 'unittest\Objects' not found) error when
    comparing two test outcomes
    (@thekid)

9.6.0: PrerequisitesFailedError

13 Aug 15:54
Compare
Choose a tag to compare
  • Merged pull request #31: Add possibility to fail all tests from within
    @beforeClass methods
    (@thekid)

9.5.1: FolderSource fix

30 Jul 12:44
Compare
Choose a tag to compare
  • Fixed #30: Cannot find any test cases in xp.unittest.sources.FolderSource
    (@thekid)

9.5.0: Folder iteration

24 Jun 17:00
Compare
Choose a tag to compare
  • 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

23 Jun 15:33
Compare
Choose a tag to compare
  • 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

02 Apr 09:56
Compare
Choose a tag to compare
  • Merged PR #28: Replace all occurrences of xp::stringOf() with
    Objects::stringOf() (the former has been deprecated since XP9)
    (@thekid)