A metric is what's actually recorded. This provides a strategy
for what to do with an object for a given product and should
return a measurable result. For example it could serialize an
object against a product and return how long it took to complete
the operation.
author: Joe Walnes author: Jörg Schaible See Also:Harness
Method Summary
boolean
biggerIsBetter() Whether a big result is better for this metric.
double
run(Product product, Object object) Run the test and produce a metric.
Parameters: product - Product to use in test. Parameters: object - A object to use against the product.
double
run(Product product, Target target) Run the test and produce a metric.
Parameters: product - Product to use in test. Parameters: target - A target to use against the product.
Run the test and produce a metric.
Parameters: product - Product to use in test. Parameters: object - A object to use against the product. The resulting metric (e.g. 12.22). throws: Exception - If this metric could not be obtained. This willbe reported back to the Reporter.
Run the test and produce a metric.
Parameters: product - Product to use in test. Parameters: target - A target to use against the product. The resulting metric (e.g. 12.22). throws: Exception - If this metric could not be obtained. This willbe reported back to the Reporter. since: 1.3