Hello, I have a unit test class called testClass_ARIMA which has parametrized setup and tests methods. My class properties looks like this:
classdef testClass_ARIMA < matlab.unittest.TestCase properties (ClassSetupParameter) categorieClass=loadmat(1); classeClass=loadmat(2); sourceClass=loadmat(3); donneeRefClass=loadmat(4); end properties (TestParameter) categorieTest=loadmat(1); classeTest=loadmat(2); sourceTest=loadmat(3); donneeRefTest=loadmat(5); end
ClassSetupParameter and TestParameters properties are actually identical, but I had to give them different names since otherwise, the code does not run. So I wondered if there is a way to share the same properties between setup and tests methods? Because the problem is that since ClassSetupParameter and TestParameters are considered independant (artificially), when I want to build a test suit matlab tries every possible combination between ClassSetupParameter and TestParameters porperties but there is no need since they should be equal. Consequently, computation takes a lot of time, juste to calculate all possible combinations whoch most of them are useless.
Thanks!
Best Answer