Repository navigation
Refactor tests to build scripts directory - #128
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.