Method: Clash::Test#run

Defined in:
lib/clash/test.rb

#runObject



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/clash/test.rb', line 16

def run
  Dir.chdir(@options['dir']) do
    clear_cache
    system_cmd(@options['before'], @options['trace'])
    config
    build if @options['build']
    unless @options['build_only']
      compare
      enforce_missing
      system_cmd(@options['after'])
    end
    cleanup_config
  end
  print_result
  results
end