mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
b863978028
MSP-11368 MSP-11143 Remove fastlib as it slows down the code loading process. From the previous commit, the mean loading for `METASPLOIT_FRAMEWORK_PROFILE=true msfconsole -q -x exit` was 27.9530±0.3485 seconds (N=10). The mean after removal of fastlib was 17.9820±0.6497 seconds (N=10). This means an average 35.67% reduction in boot time.
58 lines
1.5 KiB
Ruby
58 lines
1.5 KiB
Ruby
# RM_INFO is set when using Rubymine. In Rubymine, starting SimpleCov is
|
|
# controlled by running with coverage, so don't explicitly start coverage (and
|
|
# therefore generate a report) when in Rubymine. This _will_ generate a report
|
|
# whenever `rake spec` is run.
|
|
unless ENV['RM_INFO']
|
|
SimpleCov.start
|
|
end
|
|
|
|
SimpleCov.configure do
|
|
# ignore this file
|
|
add_filter '.simplecov'
|
|
|
|
#
|
|
# Changed Files in Git Group
|
|
# @see http://fredwu.me/post/35625566267/simplecov-test-coverage-for-changed-files-only
|
|
#
|
|
|
|
untracked = `git ls-files --exclude-standard --others`
|
|
unstaged = `git diff --name-only`
|
|
staged = `git diff --name-only --cached`
|
|
all = untracked + unstaged + staged
|
|
changed_filenames = all.split("\n")
|
|
|
|
add_group 'Changed' do |source_file|
|
|
changed_filenames.detect { |changed_filename|
|
|
source_file.filename.end_with?(changed_filename)
|
|
}
|
|
end
|
|
|
|
#
|
|
# Framework (msf) related groups
|
|
#
|
|
|
|
add_group 'Metasploit Framework', 'lib/msf'
|
|
add_group 'Metasploit Framework (Base)', 'lib/msf/base'
|
|
add_group 'Metasploit Framework (Core)', 'lib/msf/core'
|
|
|
|
#
|
|
# Other library groups
|
|
#
|
|
|
|
add_group 'Metasm', 'lib/metasm'
|
|
add_group 'PacketFu', 'lib/packetfu'
|
|
add_group 'Rex', 'lib/rex'
|
|
add_group 'RKelly', 'lib/rkelly'
|
|
add_group 'Ruby Mysql', 'lib/rbmysql'
|
|
add_group 'Ruby Postgres', 'lib/postgres'
|
|
add_group 'SNMP', 'lib/snmp'
|
|
add_group 'Zip', 'lib/zip'
|
|
|
|
#
|
|
# Specs are reported on to ensure that all examples are being run and all
|
|
# lets, befores, afters, etc are being used.
|
|
#
|
|
|
|
add_group 'Specs', 'spec'
|
|
end
|