Module: Fluence::Ci::Tools::YardstickRunner

Defined in:
lib/fluence/ci/tools/yardstick_runner.rb

Overview

In-process yardstick measure + threshold check. Reads .yardstick.yml for config (threshold, rules, paths), writes the textual report to doc/yardstick_report.txt, and exits 1 when coverage is below the configured threshold — same contract as Yardstick::Rake::Verify but without requiring the consumer to register that rake task in its Rakefile.

Constant Summary collapse

REPORT_PATH =
'doc/yardstick_report.txt'

Class Method Summary collapse

Class Method Details

.run!void

This method returns an undefined value.

Measure yardstick coverage, write the textual report to REPORT_PATH, and exit 1 if coverage is below the threshold configured in .yardstick.yml (defaults to 100% when absent).

Raises:

  • (SystemExit)

    when coverage is below the threshold