Skip to content

Refactor tests to build scripts directory - #128

Merged
d-g-codappix merged 2 commits into
mainfrom
refactor-tests-to-build-scripts-directory
Nov 12, 2026
Merged

d-g-codappix merged 2 commits into
mainfrom
refactor-tests-to-build-scripts-directory

Conversation

@d-g-codappix

Copy link
Copy Markdown
Collaborator

No description provided.

d-g-codappix and others added 2 commits November 12, 2026 14:38
The tests should be executable for local testing and GitHub
Actions with nearly the same context. The composer scripts,
the nix-shell commands and the CI workflow now call the same
scripts in Build/Scripts, which also lift the PHP memory limit.

The composer script project:cgl-fix is renamed to project:cgl:fix
like in the other cart extensions. The scripts test:php and test:all
are removed, they referenced scripts that do not exist.

The nix-shell command project-install removes the composer.lock
again and runs in the project root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The acceptance tests were only executable via nix-shell. They now
use Build/Scripts/acceptance.sh like the other tests. The script is
called by the new composer script project:test:acceptance, the
nix-shell command project-test-acceptance and the CI workflow.

The CI workflow no longer needs nix and runs the acceptance tests
in a php-version matrix. On failure the acceptance reports are
uploaded as artifact.

The script stops the php webserver and geckodriver on exit, even
if the tests fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@d-g-codappix
d-g-codappix merged commit d128d5a into main Nov 12, 2026
19 checks passed
@d-g-codappix
d-g-codappix deleted the refactor-tests-to-build-scripts-directory branch November 12, 2026 14:24
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