Skip to content

Latest commit

 

History

History
300 lines (215 loc) · 11.5 KB

CHANGELOG.md

File metadata and controls

300 lines (215 loc) · 11.5 KB

Change Log for OXID eShop testing library

All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v10.0.0 - Unreleased

Changed

  • License update

Removed

  • PHP v7 support
  • Codeception support
  • AcceptanceTestCase::getShopVersionNumber()

v9.0.0 - 2021-07-06

Added

  • PHPT files include

Changed

  • Removed database encoding
  • Update symfony components to version 5
  • Update php unit to version 9
  • Update required vfsstream version to at least 1.6.8 PR-23
  • cleanup backup-configuration directory after each class teardown
  • Exit with 78 error code (+message: ERROR: No test suites found!) if no test suites found by current configuration PR-26

Removed

  • OxidEsales\TestingLibrary\Services\ModuleInstaller\ModuleInstaller::installModule()
  • OxidEsales\TestingLibrary\ModuleLoader::installModule()
  • OxidEsales\TestingLibrary\ModuleLoader::useOriginalChain()
  • OxidEsales\TestingLibrary\Services\ProjectConfiguration\ProjectConfiguration
  • OxidEsales\TestingLibrary\Services\Library\ProjectConfiguration\ProjectConfigurationHandler::cleanup()
  • runtests_coverage command

Fixed

  • Fix the testing library to run the code coverage
  • Deny temporary tests related mysql configuration file "others" reading rights PR-27

v8.2.1 - Unreleased

Changed

  • Run tested module activations in a separate processes

v8.2.0 - 2022-07-19

Changed

  • Updated Symfony components

v8.1.0 - 2021-11-26

Removed

  • Support for PHP 7.3

v8.0.2 - 2021-07-14

Fixed

  • Remove deprecated parameters from phpunit configuration.

v8.0.1 - 2021-07-06

Fixed

  • Do not lowercase namespaced class names in getProxyClassName

v8.0.0 - 2021-04-12

Changed

  • Update phpunit to version 8
  • Support php 8

v7.3.0 - 2021-03-25

Added

  • Support of codeception v4

Deprecated

  • bin/runtests_coverage
  • \OxidEsales\TestingLibrary\Services\Library\ProjectConfigurationHandler::cleanup()
  • \OxidEsales\TestingLibrary\library\Services\ProjectConfiguration\ProjectConfiguration

v7.2.0 - 2020-11-10

Changed

  • Do not try activating the module if its already activated PR-25

Fixed

  • Fix chmod command syntax and run it only if needed in Cache::clearTemporaryDirectory PR-24
  • Make module services available in the DI container

v7.1.2 - 2020-07-16

Changed

  • Downgrade symfony/polyfill-intl-idn.

v7.1.1 - 2020-05-05

Added

  • Commands for filtering Codeception tests by suites (and names):
    • runtests-codeception-admin
    • runtests-codeception-shop

v7.1.0 - 2019-11-20

Added

  • Command reset-shop sets default values for module configurations

v7.0.1 - 2019-11-07

Fixed

  • Non stable versions of oxid-esales/codeception components.

v7.0.0 - 2019-11-07

Changed

  • Backwards compatibility break: changed shop services namespace.
  • Update of Codeception version to 3.1

v6.0.1 - 2019-07-30

Added

  • ProjectConfiguration service for handling backup and restore of project configuration file.
  • Codeception test runner: bin/runtests-codeception
  • Extend Cache::clearReverseProxyCache() method to also clear cache for Nginx and Varnish module.

Changed

  • Improved message when making screenshot
  • Switch to subshop when activating a module for subshop.
  • Destroy PHP session at test tear down.
  • Use Printer::write() rather than print or echo for test result output.

v6.0.0 - 2018-09-17

Changed

  • Backwards compatibility break: Removes goutte driver for acceptance tests
  • Removes unnecessary exception translation in AcceptanceTestCase
  • Updates Symfony yaml component to version ~3
  • Backwards compatibility break: Updated phpunit dependency to version 6
    • Changes PHP Unit classes to namespaced versions
    • \OxidEsales\TestingLibrary\Printer methods use namespaced phpunit classes as arguments
    • \OxidEsales\TestingLibrary\UnitTestCase::getSession() and getConfig() not static any more.
    • Calls to prior methods of PHPUnit_Framework_TestCase (base class of \OxidEsales\TestingLibrary\UnitTestCase) not possible any more. An example is \OxidEsales\TestingLibrary\UnitTestCase::setExpectedException(). Use \OxidEsales\TestingLibrary\UnitTestCase::expectException() for this example instead. Please have a look at the changelog of phpunit version 5 and 6 for other changes.
    • \OxidEsales\TestingLibrary\AcceptanceTestCase::onNotSuccessfulTest(): Fixed method signature for phpunit 6
  • PHP 7.2 support
  • Added screenshots for selenium functionality

Deprecated

  • \OxidEsales\TestingLibrary\UnitTestCase::getMock(): Simulated the getMock() method that is deprecated from phpunit Version 5

v5.0.8 - 2020-03-16

Fixed

  • Fixed the aTestSuites variable in AllTestsIntegration PR-19

v5.0.7 - 2019-07-30

Fixed

  • AcceptanceTestCase::assertElementText() was not doing any assertions

v5.0.6 - 2019-03-28

Changed

  • Remove database defaults file (.cnf) after it was used
  • Do not silence shell output when mysql command is called

v5.0.5 - 2019-03-28

Fixed

  • Warnings when using MySQL 5.7

v5.0.4 - 2018-10-05

Changed

  • Ported changes from v4.0.2

v5.0.3 - 2018-07-24

Changed

  • ShopInstaller: Pass proper PHP version to oe-eshop-db_views_regenerate command if PHPBIN is set in the environment

v5.0.2 - 2018-07-16

Changed

  • \OxidEsales\TestingLibrary\ModuleLoader::installModule move call to ModuleLoader::clearModuleChain to ModuleLoader::activateModules

v5.0.1 - 2018-07-16

Changed

  • \OxidEsales\TestingLibrary\ModuleLoader::installModule flushes table description cache before activation

v5.0.0 - 2018-07-09

Changed

  • expected log file name was changed to 'source/oxideshop.log'
  • expected log file format was changed
  • require v2.0.0 of oxid-esales/oxideshop-unified-namespace-generator

v4.0.2 - 2018-09-17

Changed

  • Invalidate cached objects after module activation in \OxidEsales\TestingLibrary\ModuleLoader::installModule

v4.0.1 - 2018-07-16

Changed

  • Added exception handling to \OxidEsales\TestingLibrary\AcceptanceTestCase::formException
  • Special treatment of goute driver in \OxidEsales\TestingLibrary\AcceptanceTestCase::assertElementPresent
  • Flushes table description cache before activation in \OxidEsales\TestingLibrary\ModuleLoader::installModule

v4.0.0 - 2018-04-30

Deprecated

  • \OxidEsales\TestingLibrary\AcceptanceTestCase::shouldReformatExceptionMessage

v4.0.0-beta.1 - 2018-01-17

Added

  • class \OxidEsales\TestingLibrary\helpers\ExceptionLogFileHelper holds some helper methods for exception log file
  • \OxidEsales\TestingLibrary\BaseTestCase::__construct an instance of ExceptionLogFileHelper is assigned within the constructor
  • \OxidEsales\TestingLibrary\BaseTestCase::activateTheme moved from \OxidEsales\TestingLibrary\AcceptanceTestCase
  • \OxidEsales\TestingLibrary\BaseTestCase::failOnLoggedExceptions makes a test fail, if exception log is not empty
  • \OxidEsales\TestingLibrary\BaseTestCase::setUp calls failOnLoggedExceptions now
  • \OxidEsales\TestingLibrary\BaseTestCase::tearDown calls failOnLoggedExceptions now
  • \OxidEsales\TestingLibrary\BaseTestCase::assertLoggedException validates an expected entry in the exception log file

Changed

Deprecated

  • \OxidEsales\TestingLibrary\UnitTestCase::stubExceptionToNotWriteToLog was using deprecated oxTestModules and was made obsolete now

Removed

  • \OxidEsales\TestingLibrary\AcceptanceTestCase::activateTheme moved to \OxidEsales\TestingLibrary\BaseTestCase as this method is needed by some integration tests too

Fixed

  • Stabilize acceptance tests: after first failure test data were not completely restored, so if same test was triggered once again, it could have failed because of previously failed test influence.

Security

v3.3.2 - 2018-01-11

Changed

  • Updated oxDatabaseHelper class. Will use single parameter for database connection.

v3.3.1 - 2017-12-21

Changed

Updated DatabaseRestorer class. Force usage of master database server on reads when restore tables. This was not always working in master slave setup. An example:

  • Test deletes table
  • Testing Library reads list of tables from salve
  • Replication deletes the table from salve
  • Testing Library tries to delete the table from master
  • Exception is raised as the table is already gone

v3.3.0 - 2017-12-05

Added

  • add helping methods markTestSkippedIfSubShop and markTestSkippedIfNoSubShopto the library/UnitTestCase