Add unit and integration test suite #33
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The extension has zero automated tests. No unit tests, integration tests, or functional tests exist.
Impact
Without tests, regressions can ship silently. Batch generation, CSV import/export, OG tag injection, JSON-LD output, and image resizing are all untested.
Acceptance Criteria
phpunit.xmland Joomla test bootstrapImageHelper::resize(),ImageHelper::validate()JsonLdBuilder::buildArticle(),JsonLdBuilder::toScriptTag()BatchController::extractDescription()andextractImage()loadOgData()Files
phpunit.xml(new)tests/Unit/Helper/ImageHelperTest.phptests/Unit/Helper/JsonLdBuilderTest.phptests/Unit/Controller/BatchControllerTest.phptests/Integration/ContentPluginTest.php.mokogitea/workflows/ci-joomla.yml(add test step)Branch created:
feature/33-add-unit-and-integration-test-suite