Class: Autoproj::CLI::Test

Inherits:
Utility show all
Defined in:
lib/autoproj/cli/test.rb

Instance Attribute Summary

Attributes inherited from Utility

#utility_name

Attributes inherited from Base

#ws

Instance Method Summary collapse

Methods inherited from Utility

#apply_to_packages, #default, #disable, #enable, #list, #run

Methods inherited from InspectionTool

#finalize_setup, #initialize_and_load

Methods inherited from Base

#export_env_sh, #normalize_command_line_package_selection, #notify_env_sh_updated, #resolve_selection, #resolve_user_selection, #validate_options, validate_options, #validate_user_selection

Methods included from Ops::Tools

#common_options, #create_autobuild_package, #load_autoprojrc, #load_main_initrb

Constructor Details

#initialize(ws = Workspace.default, name: "test", report_path: ws.utility_report_path("test")) ⇒ Test

Returns a new instance of Test.



6
7
8
9
10
# File 'lib/autoproj/cli/test.rb', line 6

def initialize(ws = Workspace.default,
    name: "test",
    report_path: ws.utility_report_path("test"))
    super
end

Instance Method Details

#package_metadata(package) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/autoproj/cli/test.rb', line 12

def (package)
    u = package.test_utility
    super.merge(
        "coverage_available" => !!u.coverage_available?,
        "coverage_enabled" => !!u.coverage_enabled?,
        "coverage_source_dir" => u.coverage_source_dir,
        "coverage_target_dir" => u.coverage_target_dir
    )
end