-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 9.2
-
Fix Version/s: 9.2
-
Epic Link:
-
Tags:
-
Sprint:nxcore 9.2.6
-
Story Points:3
Due to new runtime component loading has a bit changed. We can't ignore tests in @Before method if an incompatible contribution is deployed with @Deploy or @LocalDeploy declared on the method.
Because @Before is called after processing of deploy annotations.
We can use ConditionalIgnoreRule.Ignore annotation on class to ignore this test class. But currently this system process the class annotation during the same step it could process the method annotation, just after the the processing of deploy annotations on method.
We need to make ConditionalIgnoreRule a TestRule declared as a @Rule, as it it will be processed for each method before running @Rule for MethodRule.
As it, ConditionalIgnoreRule.Ignore annotation on class will be processed after the runtime start based on class annotation, just before entering the method context execution of JUnit.