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

Latest commit

 

History

History
309 lines (210 loc) · 8.57 KB

ChangeLog.md

File metadata and controls

309 lines (210 loc) · 8.57 KB

Unittests change log

?.?.? / ????-??-??

11.4.1 / 2023-11-19

  • Added PHP 8.4 to the test matrix - @thekid
  • Fixed handling exceptions from #[Before] methods - @thekid

11.4.0 / 2022-12-20

  • Merged PR #49: Use PrerequisitesFailedError for unexpected exceptions (@thekid)

11.3.2 / 2021-10-21

  • Made compatible with XP 11 - @thekid

11.3.1 / 2021-06-16

  • Fixed issue #47: Fix origin for DidNotCatch - @thekid

11.3.0 / 2021-06-07

  • Improve readability of generated code for xp test -e [code]. This is important for our verbose output mode, which will show this code in its failure messages. (@thekid)

11.2.0 / 2021-06-07

  • Merged PR #46: Use unicode characters to improve test status bar (@thekid
  • Merged PR #45: Add support for user preferences via test.ini in environment config dir (~/.xp or $XDG_CONFIG_HOME/xp on Un*x, %APPDATA%\Xp on Windows) (@thekid)
  • Merged PR #44: Show source code location where test errors were raised in verbose listener (@thekid)

11.1.0 / 2020-09-20

  • Fixed issue #42: No constructor error for class::method - @thekid
  • Merged PR #41: Implement Assert::throws() - @thekid

11.0.1 / 2020-04-12

  • Fixed "Array and string offset access syntax with curly braces is deprecated" warning in TestRunner (@thekid)

11.0.0 / 2019-11-30

  • Implemented xp-framework/rfc#334: Drop PHP 5.6. The minimum required PHP version is now 7.0.0! (@thekid)

10.1.1 / 2019-11-29

10.1.0 / 2019-11-17

  • 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 / 2019-10-06

  • 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

9.7.1 / 2019-08-22

  • 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 / 2018-09-16

  • 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 / 2018-08-14

  • Fixed lang.Error (Class 'unittest\Objects' not found) error when comparing two test outcomes (@thekid)

9.6.0 / 2018-08-13

  • Merged pull request #31: Add possibility to fail all tests from within @beforeClass methods (@thekid)

9.5.1 / 2018-07-30

  • Fixed #30: Cannot find any test cases in xp.unittest.sources.FolderSource (@thekid)

9.5.0 / 2018-06-24

  • 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 / 2018-06-23

  • 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 / 2018-04-02

  • Merged PR #28: Replace all occurrences of xp::stringOf() with Objects::stringOf() (the former has been deprecated since XP9) (@thekid)

9.4.0 / 2017-10-31

  • Added PHP 7.2 to test matrix - @thekid
  • Implemented issue #26: Find compiler classes. There really should be a way to determine classes and packages by using the class loading infrastructure! (@thekid)

9.3.0 / 2017-10-12

  • Merged PR #25: Map values - @thekid

9.2.0 / 2017-06-27

  • Merged PR #24: Refactor test runner - @thekid
  • Fixes issue #23: Calling skip in actions doesn't work - @thekid

9.1.1 / 2017-06-04

  • Fixed issue #22: Class undefined: unittest\Objects (@thekid)

9.1.0 / 2017-06-04

  • Merged PR #21: Refactor reason field in TestWarning to contain a lang.Throwable. Fixes a fatal error (method call on array). (@thekid)

9.0.1 / 2017-05-28

  • Merged PR #20: Drop dependency on xp-framework/io-collections, preventing a circular-dependency situation. (@thekid)

9.0.0 / 2017-05-28

  • Merged PR #19: XP9 Compatibility - @thekid

8.0.0 / 2017-05-25

  • Dropped support for PHP 5.5 - @thekid

7.2.0 / 2017-05-20

7.1.1 / 2016-09-20

  • Fixed "Class xp\unittest\QuietListener does not have a constructor, so you cannot pass any constructor arguments". (@thekid, @kiesel)

7.1.0 / 2016-08-28

  • Added forward compatibility with XP 8.0.0 - @thekid

7.0.2 / 2016-06-18

  • Changed detection whether to use colors in the output to check whether writing to the console; and no longer check TERM or ANSICON environment variables. The XP runners guarantee ANSI color escape sequences work in all situations! (@thekid)

7.0.1 / 2016-03-17

  • Fixed issue when expected exception's message was empty. Originally reported in xp-framework/core#135 by @kiesel (@thekid)

7.0.0 / 2016-02-21

  • Adopted semantic versioning. See xp-framework/rfc#300 - @thekid
  • Added version compatibility with XP 7 - @thekid

6.10.1 / 2016-01-23

  • Fix code to use nameof() instead of the deprecated getClassName() method from lang.Generic. See xp-framework/core#120 (@thekid)

6.10.0 / 2016-01-10

  • Heads up: Upgrade your runners before using this release! It uses class path precedence as defined in xp-runners/reference#11 (@thekid)

6.9.0 / 2016-01-10

  • Heads up: Bumped minimum XP version required to XP 6.10.0 - @thekid
  • Merged PR #14: Use a "TL;DR" style for displaying help. This will show when used together with the new XP runners xp-framework/rfc#303 (@thekid)

6.8.3 / 2016-01-09

  • Fix issue #16: Fatal error when no testcases are found - @thekid

6.8.2 / 2016-01-05

  • Fixed incorrect class name for ColoredBarListener which rendered it unusable. It now works again as expected, use the following options: unittest -q -l ColoredBar - src/test/php (@thekid)

6.8.1 / 2016-01-05

  • Fixed issue #13: assertEquals() and non-XP objects - @thekid

6.8.0 / 2016-01-03

  • Merged pull request #12: Use symbols that also work in Windows console (@thekid)
  • Added integration with new XP subcommand runners: xp test [args]. See xp-framework/rfc#303 (@thekid)
  • Heads up: Bumped minimum XP version required to XP 6.9.1 - @thekid
  • Merged pull request #7: Wrap native exceptions - @thekid
  • Merged pull request #9: Refactor sources - @thekid

6.7.2 / 2015-12-29

  • Merged pull request #11: Add "stop after first failing test" option (@thekid)

6.7.1 / 2015-12-29

  • Merged pull request #10: Refactor: Provide test cases which greatly simplifies code inside source implementations and removes duplication (@thekid)

6.7.0 / 2015-12-13

  • Merged pull request #6: Refactor: Actions' before and after runlogic (@thekid)
  • Changed fail() to also work without actual and expected parameters (@thekid)
  • Changed test case execution to catch PHP5 and PHP7 base exceptions from test setup and teardown and make them fail tests. See xp-framework/xp-framework#382 (@thekid)

6.6.2 / 2015-12-13

  • Added dependency on io.collections - @thekid

6.6.1 / 2015-12-11

  • Removed dependency on util.collections - @thekid

6.6.0 / 2015-11-08

  • Fixed forward compatibility with XP 6.6.0 - @thekid
  • Changed TestSuite::addTestClass() to return class added instead of list of ignored test methods. The latter is dependant on the internal implementation and also not used anywhere. (@thekid)

6.5.0 / 2015-09-27

  • Heads up: Bumped minimum PHP version required to PHP 5.5. See PR #4 (@thekid)

6.4.2 / 2015-08-06

  • MFH: Fixed unittest.XmlTestListener::uriFor() raising exceptions - @thekid
  • Heads up: Split library from xp-framework/core as per xp-framework/rfc#293 (@thekid)