Can I force abstract properties to be implemented in matlab.unittest.testcase classes when running a test suite?

2 vues (au cours des 30 derniers jours)
Hi,
I have an abstract class, named A, which inherits from 'matlab.unittest.TestCase', which has an abstract property, named X, that should be implemented by classes, that inherit from this class A.
When running a test suite, I collect all testcases using the function 'matlab.unittest.TestSuite.fromPackage'.
However, it neglects abstract unittest classes (which is the desired default behavior of course).
Suppose, I have a class, named B, which inherits from A. And I forget to assign a value to the abstract property X.
When running a test suite, I get no notification that class B is excluded from the test suite, because it is abstract.
(Of course, I should run B on its own and it will give a notification, but suppose I wouldn't do that)
Is there any way to force a notification that there are abstract unittest classes that have parameters that should be implemented?
Thanks in advance!
Koos

Réponses (0)

Catégories

En savoir plus sur Argument Definitions dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by