Skip to content

Commit

Permalink
Testing out dispif
Browse files Browse the repository at this point in the history
  • Loading branch information
augustjohansson committed Jan 4, 2024
1 parent 9393871 commit f1def2c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Tests/runGitHubTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,35 @@
end

disp(pyenv)
disp(py.sys.path)

%% Setup BattMo
global MRST_BATCH
MRST_BATCH = true;

run('../startupBattMo.m')

%% Test dispif

disp('Standard disp');
mrstVerbose 'off';
dispif(mrstVerbose, 'dispif with mrstVerbose off');
mrstVerbose 'on';
dispif(mrstVerbose, 'dispif with mrstVerbose on');

return

%% Run tests

mrstVerbose 'on';

doTestJsonFiles = true;
stopOnError = false;
stopOnError = true;

if doTestJsonFiles
suite = testsuite('TestJsonFiles');
runner = testrunner('textoutput');

% If stop on error
if stopOnError
import matlab.unittest.plugins.StopOnFailuresPlugin
runner.addPlugin(StopOnFailuresPlugin)
Expand Down

0 comments on commit f1def2c

Please sign in to comment.