Class: AppMap::Depends::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/appmap/depends/configuration.rb

Constant Summary collapse

DEFAULT_OUTPUT_FILE =

Default file to write Rake task results.

File.join('tmp', 'appmap_depends.txt')
DEFAULT_BASE_BRANCHES =

Default base branches which will be checked for existance.

%w[remotes/origin/main remotes/origin/master].freeze
DEFAULT_TEST_FILE_PATTERNS =

Default pattern to enumerate test cases.

[ 'spec/**/*_spec.rb', 'test/**/*_test.rb' ].freeze
DEFAULT_DEPENDENT_TASKS =
[ :swagger ].freeze
DEFAULT_DESCRIPTION =
'Bring AppMaps up to date with local file modifications, and updated derived data such as Swagger files'
DEFAULT_ENVIRONMENT_METHOD =
'AppMap::Depends.test_env'
DEFAULT_RSPEC_SELECT_TESTS_METHOD =
'AppMap::Depends.select_rspec_tests'
DEFAULT_MINITEST_SELECT_TESTS_METHOD =
'AppMap::Depends.select_minitest_tests'
DEFAULT_RSPEC_TEST_COMMAND_METHOD =
'AppMap::Depends.rspec_test_command'
DEFAULT_MINITEST_TEST_COMMAND_METHOD =
'AppMap::Depends.minitest_test_command'

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/appmap/depends/configuration.rb', line 42

def initialize
  @base_dir = nil
  @base_branches = DEFAULT_BASE_BRANCHES
  @test_file_patterns = DEFAULT_TEST_FILE_PATTERNS
  @dependent_tasks = DEFAULT_DEPENDENT_TASKS
  @description = DEFAULT_DESCRIPTION
  @rspec_environment_method = DEFAULT_ENVIRONMENT_METHOD
  @minitest_environment_method = DEFAULT_ENVIRONMENT_METHOD
  @rspec_select_tests_method = DEFAULT_RSPEC_SELECT_TESTS_METHOD
  @minitest_select_tests_method = DEFAULT_MINITEST_SELECT_TESTS_METHOD
  @rspec_test_command_method = DEFAULT_RSPEC_TEST_COMMAND_METHOD
  @minitest_test_command_method = DEFAULT_MINITEST_TEST_COMMAND_METHOD
end