degraph icon indicating copy to clipboard operation
degraph copied to clipboard

Graph on Testfailures should include only violating nodes and edges

Open drosowski opened this issue 10 years ago • 2 comments

Would it be possible (or is it already possible) to limit the graph produced using classpath.printTo in my test to only those nodes and edges that broke the test, i.e. only the packages containing cycles? Cheers!

drosowski avatar Mar 13 '15 13:03 drosowski

right now it is not possible. But I think it is a very good idea. Actually I'd like it to extend it:

I imagine something like:

classpath.printTo(PrintConfig(
    onFailureOnly=true/false,
    slicingsWithFailureOnly=true/false // this would not include for example a slicing by business module if it does not caused a test failure
    nodesInvolvedInViolationOnly=true/false // this would do what you are asking for
    seperateDiagramPerSlicing=true/false
))

schauder avatar Mar 13 '15 15:03 schauder

Sounds good! I would gladly contribute... if I would know how to write scala code :(

drosowski avatar Mar 20 '15 09:03 drosowski