Hi Christian,
It sounds like Steve's suggestion has you moving in the right direction here, however note that the test tags are only applied to the base class and all subclass test methods when they are included as a class level attribute (e.g defined in the classdef block).
However, you can restrict your tags to work on only the base class methods by including them in the methods block, something like this:
classdef BaseClass < matlab.unittest.TestCase
methods (Tests, TestTags = {'BaseTag'})
function something(self)
end
end
end
classdef (TestTags = {'ChildTag'}) ChildClass < BaseClass
methods (Tests)
function somethingElse(self)
end
end
end
Then, 'BaseTag' will only apply to the "something" test method (as well as any other method defined in that methods block) and not "somethingElse".
HTH,
Andy