From d6f724a79fca6af98438ed862a0d8c16eca3551f Mon Sep 17 00:00:00 2001
From: Federico Felici <federico.felici@epfl.ch>
Date: Tue, 9 Jul 2019 12:46:16 +0200
Subject: [PATCH] Cleanup and fix of capitalization for tests

---
 matlab/run_gdat_tests.m          | 7 +++----
 matlab/tests/test_requestnames.m | 4 ++--
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/matlab/run_gdat_tests.m b/matlab/run_gdat_tests.m
index 4d756704..611ed527 100644
--- a/matlab/run_gdat_tests.m
+++ b/matlab/run_gdat_tests.m
@@ -18,8 +18,8 @@ import matlab.unittest.selectors.HasName;
 addpath(genpath(fullfile(fileparts(mfilename('fullpath')),'tests')));
 addpath(genpath(fullfile(fileparts(mfilename('fullpath')),'TCV_IMAS')));
 
-suite_all = [matlab.unittest.TestSuite.fromClass(?test_requestnames_TCV),...
-  matlab.unittest.TestSuite.fromClass(?test_requestnames_AUG),...
+suite_all = [matlab.unittest.TestSuite.fromClass(?test_requestnames_tcv),...
+  matlab.unittest.TestSuite.fromClass(?test_requestnames_aug),...
   matlab.unittest.TestSuite.fromClass(?test_tcv_get_ids)];
 
 switch test_case
@@ -32,8 +32,7 @@ switch test_case
     s = HasTag('imas');
     suite = suite_all.selectIf(s);
   case 'tcv'
-
-    s = HasName(ContainsSubstring('TCV'));
+    s = HasName(ContainsSubstring('tcv'));
     suite = suite_all.selectIf(s);
   case 'aug'
     s = HasName(ContainsSubstring('aug'));
diff --git a/matlab/tests/test_requestnames.m b/matlab/tests/test_requestnames.m
index 83daa117..69e3831c 100644
--- a/matlab/tests/test_requestnames.m
+++ b/matlab/tests/test_requestnames.m
@@ -13,13 +13,13 @@ classdef (SharedTestFixtures={...
     requests_slow;
   end
   
-  methods(Test,TestTags = {'Fast'})
+  methods(Test,TestTags = {'fast'})
     function test_gdat_call_fast(testCase,shot,requests_fast)
       test_gdat_call(testCase,shot,requests_fast);
     end
   end
   
-  methods(Test,TestTags = {'Slow'})
+  methods(Test,TestTags = {'slow'})
     function test_gdat_call_slow(testCase,shot,requests_slow)
       test_gdat_call(testCase,shot,requests_slow);
     end
-- 
GitLab