Measure 0.3 =========== Measure expects to be invoked from the directory that holds lib run measure -h for more information. At the moment, users without bash(1) are stuck (I hope to fix that soon) but should be able to figure out enough from the content of the script to see how to launch measure. What Measure Does ================= All .java files under source_dir are examined for the Cyclomatic Complexity of the methods declared in each, using Checkstyle. The distribution of complexity is modelled as two distributions: * a Zipf distribution and, * a Pareto distribution derived from it. See http://www.hpl.hp.com/research/idl/papers/ranking/ranking.html The actual Pareto data and a derived distribution are shown on a chart, using JFreechart. This chart can be re-sized, saved, printed. Checkstyle emits raw complexity data to stdout. Why Measure? ============ See http://peripateticaxiom.blogspot.com/search/label/test-first%20complexity for the story behind the development of Measure. If you Measure on your own code, I'd love to hear about it. I'm particularly interested in code that was developed TDD that has an alpha near or less than 2, and code that was not developed TDD that has an alpha near or greater than 2. Note on Java versions ===================== Measure itself should run on any J2SE 1.5 or later. On MacOS 10.5 (the development platform, as it happens) the tests run, and pass, inside Eclipse Europa but not from the command line. Thanks for your interest. Keith Braithwaite mailto:kbr@zuhlke.com