Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance testing of backend #2388

Open
christianlupus opened this issue Jun 24, 2024 · 0 comments
Open

Enhance testing of backend #2388

christianlupus opened this issue Jun 24, 2024 · 0 comments
Labels
meta and development Any optimization for the build process

Comments

@christianlupus
Copy link
Collaborator

In the Matrix channel some flaws of the automatic testing were reported:

  • I found it necessary to uncomment PHP_VERSION in .github/actions/run-tests/docker-compose.yml in the dut service's build args, or --create-images fails
  • Also had to change PHP_VERSION from 7 to 8, or perl exploded
  • I preferred not to install PHP and Composer in my host environment; used docker instead
    • After run-locally --create-images you've got what you need
    • From cookbook repo dir on host: docker run -it -w /cookbook --rm -v $PWD:/cookbook --entrypoint composer cookbook_unittesting_fpm install
  • When running --create-fixture, I didn't realize initially that the version is a branch or tag in the Nextcloud server repo. It makes sense, but I didn't know, and just setting master doesn't work because Cookbook doesn't expect to run against that version.
  • If I create a test fixture with sqlite, tests pass the first time only. Subsequent runs have a litany of missing table errors. Using mysql works as expected.
@christianlupus christianlupus added the meta and development Any optimization for the build process label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta and development Any optimization for the build process
Projects
None yet
Development

No branches or pull requests

1 participant