forked from Arachni/arachni
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.simplecov
33 lines (28 loc) · 1.05 KB
/
.simplecov
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pid = Process.pid
SimpleCov.at_exit do
SimpleCov.result.format! if Process.pid == pid
end
SimpleCov.start do
add_filter do |source_file|
path = source_file.filename
path.start_with?( "#{Dir.pwd}/spec" ) ||
# We can't monitor the server, they're forked.
path.start_with?( "#{Dir.pwd}/lib/arachni/rpc/server" )
end
add_group 'Core' do |source_file|
path = source_file.filename
path.start_with?( "#{Dir.pwd}/lib/arachni" ) &&
!path.start_with?( "#{Dir.pwd}/lib/arachni/rpc" )
end
add_group 'RPC' do |source_file|
path = source_file.filename
path.start_with?( "#{Dir.pwd}/lib/arachni/rpc" )
end
add_group 'Checks', 'components/checks'
add_group 'Plugins', 'components/plugins'
add_group 'Reports', 'components/reports'
add_group 'Path extractors', 'components/path_extractors'
add_group 'Fingerprinters', 'components/fingerprinters'
add_group 'RPCD Handlers', 'components/rpcd_handlers'
add_group 'UI', 'ui/'
end