Skip to content

Releases: OXID-eSales/testing_library

Improve AcceptanceTestCase

07 Feb 09:55
Compare
Choose a tag to compare

Changed:

  • Revert beta.2 change: "a test run is only repeated, if there was an AssertionFailedError thrown. in any other case the test run is not repeated in order to fail as soon as possible and get more information about the underlying error."
  • Add trace information in callShopSC method: abbb0ad

Fix AcceptanceTestCase

29 Jan 16:13
Compare
Choose a tag to compare

Two things were fixed:

  • setUp calls parent::setUp() now
  • a test run is only repeated, if there was an AssertionFailedError thrown.
    in any other case the test run is not repeated in order to fail as soon
    as possible and get more information about the underlying error.

Changed handling of logged exceptions

17 Jan 16:22
Compare
Choose a tag to compare

In OXID eShop the business logic sometime requires to only log exceptions and not (re)throw them.
As an result some faulty behavior might be overlooked, if the tests do not evaluate the exception log file.
To improve test quality as of this release, before and after each test the exception log file is evaluated.

This is a breaking change as tests will fail, if the exception log is not empty.

If your tests willingly produce some content in the exception log, you can assert this content with the new method
\OxidEsales\TestingLibrary\BaseTestCase::assertLoggedException()

Add abilities to skip tests

05 Dec 12:47
Compare
Choose a tag to compare

Adding the ability to skip tests, if the test is (not) about a subshop

Add oxDatabaseHelper object

04 Oct 05:58
Compare
Choose a tag to compare
v3.2.0

OXDEV-46 Clean up & small refactorings for readability

Add features

05 Sep 09:25
Compare
Choose a tag to compare
  • Added \OxidEsales\TestingLibrary\AcceptanceTestCase::changeBasket to change the amount of a given item in the basket
  • Added a new test configuration parameter retry_times_after_test_fail to define how many times to try test before marking it as failure

Introduce Unified Namespace

24 Jul 09:24
Compare
Choose a tag to compare

Testing library helper files now require Unified Namespaces to be present in the OXID eShop and related packages.

Add possibility to not restore database while running tests

11 Apr 05:52
Compare
Choose a tag to compare

Use these configuration options to define if or not to restore database.

# Whether to dump and restore the database after a single acceptance test.
restore_after_acceptance_tests: true

# Whether to dump and restore the database after all tests are finished in a single unit, integration test suite.
restore_after_unit_tests: true

v1.0.1

28 Apr 10:40
Compare
Choose a tag to compare

Use packages directly from packagist.