Bonjour,
Un outil tel que NoUnit permet de fournir la valeur "depth" pour une méthode données.
Définition: "Depth is the minimum number of other methods that we must pass through before this method is tested. For a method directly tested by JUnit, this would be 0. For a method tested only via another method , the depth would be 1. If it took three nested calls before the method was tested , the depth would be 3. Lower is better!"
En gros, cela me permet de savoir comment est testé une méthode dans un TU. La profondeur vaut 0 si la méthode est directement utilisée dans mon TU, elle vaut 1 si elle est utilisée indirectement à travers une autre méthode, 2 s'il faut 2 méthodes, etc...
Ma question est, existe t il un outil permettant d'obtenir cette valeur (un outil autre que NoUnit)?
Partager