GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BookStack/dev/docker/db-testing at development · BookStackApp/BookStack

Expand file tree

/

db-testing

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

db-testing

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Containerfile
Containerfile
 
 
readme.md
readme.md
 
 
run.sh
run.sh
 
 

readme.md

Outline

Database Testing Suite

This container setup is designed to run BookStack's test suite against each major database version we support across MySQL and MariaDB to ensure compatibility and highlight any potential issues before a release. This is a fairly slow and heavy process, so is designed to just be run manually before a release which makes changes to the database schema, or a release which makes significant changes to database queries.

Running

Everything is ran via the run.sh script. This will:

  • Optionally, accept a branch of BookStack to use for testing.
  • Use podman if available, otherwise fall back to docker.
  • Build the container image from the Containerfile.
    • This will include a built-in copy of the chosen BookStack branch.
  • Cycle through each major supported database version:
    • Migrate and seed the database.
    • Run the full PHP test suite.

If there's a failure for a database version, the script will prompt if you'd like to continue or stop testing.

This script should be ran from this db-testing directory:

# Enter this directory
cd dev/docker/db-testing

# Runs for the 'development' branch by default
./run.sh

# Run for a specific branch
./run.sh v25-11

# Run, but skip the build step
./run.sh --skip-build
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.