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

Add first functional tests #153

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Commits on Sep 6, 2024

  1. [BUGFIX] Improve functional test run speed

    The XDEBUG variables defined in the docker-compose.yml file command
    blocks were not used under docker 20.10.24+dfsg1
    with docker compose version v2.29.2.
    
    This led to the problem that Bootstrap::init took 37 seconds,
    wasting developer time.
    
    By switching to "export" calls, the variables get set properly
    and php/xdebug runs fast. A single functional test run is 3 seconds now.
    cweiske committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    d58b58c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    81cc9ef View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2414337 View commit details
    Browse the repository at this point in the history
  4. Script to prepare minio-data directory

    based on the files in Tests/Functional/Bucketfiles/
    cweiske committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    cc5c016 View commit details
    Browse the repository at this point in the history
  5. Add minio test data directory

    Created with the Build/testing-docker/prepare-minio-data.sh
    
    Committed here so that "mc" (minio client) is not needed
    to run the tests.
    cweiske committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    d0671ba View commit details
    Browse the repository at this point in the history
  6. Prepare minio-data directory when running functional tests

    ./Build/Scripts/runTests.sh -p 8.2 -d sqlite -s functional -e "--display-warnings --display-notices --display-errors"
    cweiske committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    ee2f027 View commit details
    Browse the repository at this point in the history
  7. Add functional tests

    We use a local minio instance to run the tests against.
    
    Run them with
    ./Build/Scripts/runTests.sh -p 8.2 -d sqlite -s functional -e "--display-warnings --display-notices --display-errors"
    cweiske committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    f83394a View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. Run functional tests via Github actions

    - amend commit to trigger build
    cweiske committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    d9fa566 View commit details
    Browse the repository at this point in the history
  2. Run test with ubuntu 24.04 as base

    ubuntu-20.04 brings an error:
    > Run Build/Scripts/runTests.sh -p 8.0 -s composerInstall
    > Build/Scripts/runTests.sh: line 107: type: docker-compose: not found
    > This script relies on docker and docker-compose. Please install
    cweiske committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    e437034 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5d0137b View commit details
    Browse the repository at this point in the history
  4. Do not test on PHP 8.0

    .. typo3/testing-framework 8 needs a higher version
    cweiske committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    72871b4 View commit details
    Browse the repository at this point in the history