Skip to content

My Tester 2.0.0

Compare
Choose a tag to compare
@konecnyjakub konecnyjakub released this 27 Sep 16:50
· 576 commits to master since this release

After 4 years of development, My Tester 2 is finally out. It contains quite a lot of changes, a few new features were added and some features/options were removed or deprecated. It also works only on PHP 7.4/8.0. Next major version will remove deprecated stuff and will most likely support only PHP 8.

Complete changelog for this version follows:

  • BC break: removed Runner
  • simplified output, errors are now printed to tests_folder/job_name.errors
  • BC break: removed parameter $successText of method Assert::tryAssertion()
  • automated tests runner exits with 0/1 depending on whether all tests passed
  • BC break: removed methods Environment::testStats(), Environment::getOutput(), Environment::checkFailed()
  • added option to mark test method as supposed to fail
  • removed option to save the output to file(s)
  • BC break: removed second parameter of Environment::printLine()
  • added script for automated tests runner, see README
  • BC break: parameter $params in Job::__construct() must always be an array
  • raised minimal version of PHP to 7.4
  • marked some classes as final
  • added event onExecute to Tester
  • dropped support for Nette 2.4
  • deprecated Assert
  • BC break: added constructor for TestCase
  • BC break: marked methods Environment::incCounter(), Environment::resetCounter(), Environment::addSkipped() as internal/private
  • automated tests runner now supports *Test.php files, they should be used instead of *.phpt files
  • BC break: marked TestsRunner as internal
  • removed support for running from browser
  • PHP 8 attributes can be used instead of phpDoc annotations