diff --git a/contrib/fitnesse/ModuleDependencyFixture.zip b/contrib/fitnesse/ModuleDependencyFixture.zip new file mode 100644 index 0000000..1ac55d5 Binary files /dev/null and b/contrib/fitnesse/ModuleDependencyFixture.zip differ diff --git a/contrib/fitnesse/README.md b/contrib/fitnesse/README.md new file mode 100644 index 0000000..ad9201a --- /dev/null +++ b/contrib/fitnesse/README.md @@ -0,0 +1,7 @@ +# FitNesse Module Dependency Fixture + +Bob Martin contributed the Module Dependency Fixture +(`ModuleDependencyFixture.zip`) for FitNesse. + +For details on how to use it, see +[Using the JDepend Fixture for FitNesse](http://www.butunclebob.com/ArticleS.UncleBob.JdependFixture). diff --git a/contrib/jdepend2dot.sh b/contrib/jdepend2dot.sh new file mode 100644 index 0000000..5fedb8f --- /dev/null +++ b/contrib/jdepend2dot.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +COMMAND=$0 +JDEPEND_DIR=`dirname $COMMAND`/.. + +GRAPHVIZ_PATH=~/Applications/Graphviz/Graphviz.app/Contents/MacOS + +java -classpath $JDEPEND_DIR/lib/jdepend.jar jdepend.xmlui.JDepend -file jdepend.xml $JDEPEND_DIR/lib/jdepend.jar + +xsltproc jdepend2dot.xsl jdepend.xml > jdepend.dot + +$GRAPHVIZ_PATH/dot -Tpng jdepend.dot -o jdepend-report.png +#$GRAPHVIZ_PATH/dot -Tsvg jdepend.dot -o jdepend-report.svg diff --git a/contrib/jdepend2dot.xsl b/contrib/jdepend2dot.xsl new file mode 100644 index 0000000..6130687 --- /dev/null +++ b/contrib/jdepend2dot.xsl @@ -0,0 +1,75 @@ + + + + + + + + + +digraph g { + graph [ + rankdir = "LR" + ]; + node [ + fontsize = "12" + fontname = "Courier" + shape = "ellipse" + ]; + edge[]; + +} + + + + + + + + + " " [ + label=" | Total Classes: + " + shape="record" + color=".99 + + + + + + 0.0 + + + .9" + style=filled + ]; + + + + + + " " -> "" + + + + + + + +