The Method plugin keeps a running tally of calculations expressed as a series of lines.
See About Method Plugin for how-to documentation about this plugin.
See About Plugins for general information about plugins.
Most of the calculation machinery can be tested in node.js at build time.
grunt build
to compile coffeescript and run non-ui tests.
grunt watch
to build on updates to plugin or tests.