81d160c685
MSP-11647 Port simplecov setup from metasploit-version so that child processes, in this case msfconsole, will load simplecov and report coverage back to the parent process. Coverage from msfconsole's cucumber features is the only way to get coverage on portions of the command dispatcher commands.
12 lines
298 B
Ruby
12 lines
298 B
Ruby
# @note this file is loaded in env.rb to setup simplecov using RUBYOPTs for child processes
|
|
|
|
require 'simplecov'
|
|
|
|
require 'pathname'
|
|
|
|
root = Pathname(__FILE__).expand_path.parent.parent.parent
|
|
|
|
SimpleCov.command_name(ENV['SIMPLECOV_COMMAND_NAME'])
|
|
SimpleCov.root(root)
|
|
load root.join('.simplecov')
|