Groovy Documentation

groovy.org.codenarc.rule.junit
[Groovy] Class CoupledTestCaseRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.junit.CoupledTestCaseRule

class CoupledTestCaseRule
extends AbstractAstVisitorRule

This rule finds test cases that are coupled to other test cases, either by invoking static methods on another test case or by creating instances of another test case. If you require shared logic in test cases then extract that logic to a new class where it can properly be reused.

Authors:
Hamlet D'Arcy


Property Summary
String applyToClassNames

Class astVisitorClass

String name

int priority

 

Property Detail

applyToClassNames

String applyToClassNames


astVisitorClass

Class astVisitorClass


name

String name


priority

int priority


 

Groovy Documentation