10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 
     | 
    
      # File 'lib/appmap/service/test_command_provider.rb', line 10
def all
  commands = []
  if TestFrameworkDetector.rspec_present? && !integration_test_paths[:rspec].empty?
    commands << {
      framework: :rspec,
      command: {
        program: 'bundle',
        args: %w[exec rspec] + integration_test_paths[:rspec].map { |path| "./#{path}" },
        environment: { }
      }
    }
  end
  if TestFrameworkDetector.minitest_present? && !integration_test_paths[:minitest].empty?
    commands += minitest_commands
  end
  if TestFrameworkDetector.cucumber_present? && !integration_test_paths[:cucumber].empty?
    commands << {
      framework: :cucumber,
      command: {
        program: 'bundle',
        args: %w[exec cucumber],
        environment: { }
      }
    }
  end
  commands
end
     |