Build out MATLAB test framework and core integration coverage

This commit is contained in:
Silas Oettinghaus
2026-03-24 17:23:02 +01:00
parent 9446dfb888
commit a592ebefda
154 changed files with 2281 additions and 1305 deletions

26
Tests/IMDDTestCase.m Normal file
View File

@@ -0,0 +1,26 @@
classdef (Abstract) IMDDTestCase < matlab.unittest.TestCase
% Base class for repository tests.
% Ensures the relevant project folders are on the MATLAB path so tests
% can run both from the Test Browser and from the custom entrypoint.
methods (TestClassSetup)
function addRepositoryPaths(~)
root = IMDDTestCase.repoRoot();
addpath(root);
folders = ["Classes", "Functions", "Datatypes", "Libs", "Tests"];
for folder = folders
fullFolder = fullfile(root, folder);
if isfolder(fullFolder)
addpath(genpath(fullFolder));
end
end
end
end
methods (Static, Access = protected)
function root = repoRoot()
root = fileparts(fileparts(mfilename("fullpath")));
end
end
end