Releases: OXID-eSales/testing_library
Improve AcceptanceTestCase
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
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
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
Adding the ability to skip tests, if the test is (not) about a subshop
Add oxDatabaseHelper object
v3.2.0 OXDEV-46 Clean up & small refactorings for readability
Add features
- 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
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
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
Use packages directly from packagist.