Skip to content
Snippets Groups Projects
Commit d6f724a7 authored by Federico Felici's avatar Federico Felici Committed by Olivier Sauter
Browse files

Cleanup and fix of capitalization for tests

parent abc7071f
No related branches found
No related tags found
1 merge request!4Feature/testsuite
...@@ -18,8 +18,8 @@ import matlab.unittest.selectors.HasName; ...@@ -18,8 +18,8 @@ import matlab.unittest.selectors.HasName;
addpath(genpath(fullfile(fileparts(mfilename('fullpath')),'tests'))); addpath(genpath(fullfile(fileparts(mfilename('fullpath')),'tests')));
addpath(genpath(fullfile(fileparts(mfilename('fullpath')),'TCV_IMAS'))); addpath(genpath(fullfile(fileparts(mfilename('fullpath')),'TCV_IMAS')));
suite_all = [matlab.unittest.TestSuite.fromClass(?test_requestnames_TCV),... suite_all = [matlab.unittest.TestSuite.fromClass(?test_requestnames_tcv),...
matlab.unittest.TestSuite.fromClass(?test_requestnames_AUG),... matlab.unittest.TestSuite.fromClass(?test_requestnames_aug),...
matlab.unittest.TestSuite.fromClass(?test_tcv_get_ids)]; matlab.unittest.TestSuite.fromClass(?test_tcv_get_ids)];
switch test_case switch test_case
...@@ -32,8 +32,7 @@ switch test_case ...@@ -32,8 +32,7 @@ switch test_case
s = HasTag('imas'); s = HasTag('imas');
suite = suite_all.selectIf(s); suite = suite_all.selectIf(s);
case 'tcv' case 'tcv'
s = HasName(ContainsSubstring('tcv'));
s = HasName(ContainsSubstring('TCV'));
suite = suite_all.selectIf(s); suite = suite_all.selectIf(s);
case 'aug' case 'aug'
s = HasName(ContainsSubstring('aug')); s = HasName(ContainsSubstring('aug'));
......
...@@ -13,13 +13,13 @@ classdef (SharedTestFixtures={... ...@@ -13,13 +13,13 @@ classdef (SharedTestFixtures={...
requests_slow; requests_slow;
end end
methods(Test,TestTags = {'Fast'}) methods(Test,TestTags = {'fast'})
function test_gdat_call_fast(testCase,shot,requests_fast) function test_gdat_call_fast(testCase,shot,requests_fast)
test_gdat_call(testCase,shot,requests_fast); test_gdat_call(testCase,shot,requests_fast);
end end
end end
methods(Test,TestTags = {'Slow'}) methods(Test,TestTags = {'slow'})
function test_gdat_call_slow(testCase,shot,requests_slow) function test_gdat_call_slow(testCase,shot,requests_slow)
test_gdat_call(testCase,shot,requests_slow); test_gdat_call(testCase,shot,requests_slow);
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment