Skip to content

test: add release tests, rework bats setup to match other add-ons - #72

Merged
stasadev merged 1 commit into
mainfrom
20261008_stasadev_release_tests
Oct 8, 2026
Merged

stasadev merged 1 commit into
mainfrom
20261008_stasadev_release_tests

Conversation

@stasadev

@stasadev stasadev commented Oct 8, 2026

Copy link
Copy Markdown
Member

Short Summary (TL;DR)

Restores the release test (run only on schedule and workflow_dispatch) and reworks tests/test.bats to match ddev-sqlsrv and ddev-solr.

The Issue

The install from release test was removed in #38 when tests were split by bats_tag, so nothing checks that ddev add-on get ddev/ddev-frankenphp still works.

The test setup also repeated the same config, install, and restart steps in every test.

How This PR Solves The Issue

  • Adds back the install from release test with the release tag.
  • Adds release to the bats_tag matrix only on schedule and workflow_dispatch, the same as ddev-redis and ddev-sqlsrv.
  • Adds an install_from_directory <php_version> helper, and passes the PHP version to health_checks instead of using FRANKENPHP_PHP_VERSION.
  • Copies the default index.php in setup().
  • Renames tests to the install from directory PHP X.Y format. Tags are unchanged.

Manual Testing Instructions

ddev add-on get ddev/ddev-frankenphp --pr 72
ddev restart

Automated Testing Overview

  • bats tests --filter-tags '!release' runs the same 6 tests as before.
  • bats tests --filter-tags release runs the new release test.

Release/Deployment Notes

Only tests and CI are changed.

🤖 Generated with Claude Code

## Short Summary (TL;DR)

Restores the release test (run only on schedule and `workflow_dispatch`) and reworks `tests/test.bats` to match ddev-sqlsrv and ddev-solr.

## The Issue

The `install from release` test was removed in #38 when tests were split by `bats_tag`, so nothing checks that `ddev add-on get ddev/ddev-frankenphp` still works.

The test setup also repeated the same config, install, and restart steps in every test.

## How This PR Solves The Issue

- Adds back the `install from release` test with the `release` tag.
- Adds `release` to the `bats_tag` matrix only on `schedule` and `workflow_dispatch`, the same as ddev-redis and ddev-sqlsrv.
- Adds an `install_from_directory <php_version>` helper, and passes the PHP version to `health_checks` instead of using `FRANKENPHP_PHP_VERSION`.
- Copies the default `index.php` in `setup()`.
- Renames tests to the `install from directory PHP X.Y` format. Tags are unchanged.

## Manual Testing Instructions

```bash
ddev add-on get ddev/ddev-frankenphp --pr 72
ddev restart
```

## Automated Testing Overview

- `bats tests --filter-tags '!release'` runs the same 6 tests as before.
- `bats tests --filter-tags release` runs the new release test.

## Release/Deployment Notes

Only tests and CI are changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stasadev
stasadev merged commit a0dd0ba into main Oct 8, 2026
12 checks passed
@stasadev
stasadev deleted the 20261008_stasadev_release_tests branch October 8, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant