Skip to content

Commit

Permalink
Merge pull request #2437 from farid-zare/developTestAll
Browse files Browse the repository at this point in the history
Develop test all
  • Loading branch information
farid-zare authored Feb 14, 2025
2 parents 71cf4c8 + b757a89 commit b25e310
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testAll.m
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@
totalTime = sum(resultTable.Time);

% 1) Wrap in <testsuites> -- typical JUnit format
fprintf(fid, '<testsuites name="COBRA Toolbox Test Suites" tests="%d" failures="%d" errors="%d" time="%.3f">\n', ...
fprintf(fid, '<testsuites name="" tests="%d" failures="%d" errors="%d" time="%.3f">\n', ...
numTests, numFailures, numErrors, totalTime);

% 2) A single <testsuite> inside
fprintf(fid, ' <testsuite name="COBRA Toolbox Test Suite" tests="%d" failures="%d" errors="%d" skipped="%d" time="%.3f">\n', ...
fprintf(fid, ' <testsuite name="" tests="%d" failures="%d" errors="%d" skipped="%d" time="%.3f">\n', ...
numTests, numFailures, numErrors, numSkipped, totalTime);

% 3) Loop over each test case
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
fileDir = fileparts(which('testCreatePanModels'));
cd(fileDir);

solverPkgs = prepareTest('toolboxes', {'distrib_computing_toolbox'});

modelList={
'Abiotrophia_defectiva_ATCC_49176'
'Acidaminococcus_fermentans_DSM_20731'
Expand Down
2 changes: 2 additions & 0 deletions test/verifiedTests/analysis/testTopology/testLrsInterface.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
% save the current path
currentDir = pwd;

solverPkgs = prepareTest('requiredSoftwares',{'lrs'});

% set the model name
modelName = 'test';

Expand Down
3 changes: 3 additions & 0 deletions test/verifiedTests/analysis/testrFBA/testdynamicRFBA.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
%QP solvers
QPsolverPkgs = {'tomlab_cplex','ibm_cplex'};

solverPkgs = prepareTest('requiredSolvers',solverPkgs);


for k =1:length(solverPkgs)

solverLPOK = changeCobraSolver(solverPkgs{k},'LP', 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
% save the current path
currentDir = pwd;

solverPkgs = prepareTest('requiredSolvers',{'ibm_cplex'});

%get the warning settings and turn on all warnings
cwarn = warning;
warning('on');
Expand Down

0 comments on commit b25e310

Please sign in to comment.