Database Testing Framework
Updated 22 Jun 2020
Test MATLAB® code against databases running in Docker®
The code in this project allows you to test MATLAB code that requires a database by using a local instance of the database server running in Docker.
The following databases are currently supported:
Microsoft SQL Server® 2017 & 2019 (latest published)
PostgreSQL® (latest published)
SQLite (does not require Docker).
By creating tests that inherit from the relevant test class, the Docker container will automatically be spun up and a connection created. The test class also provides methods to create database checkpoints, restore the database to that checkpoint, delete the checkpoint, and import backup files (e.g. from your production database).
Installation & Documentation
Install by double-clicking the mltbx file. Documentation is provided in the getting started guide.
Please see LICENCE.txt (https://github.com/mathworks-ref-arch/matlab-database-testing-framework/blob/master/LICENCE.txt)
Please submit issues to GitHub.
Tim Johns (2022). Database Testing Framework (https://github.com/mathworks-ref-arch/matlab-database-testing-framework/releases/tag/220.127.116.11), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!