Module: Simmer

Defined in:
lib/simmer/version.rb,
lib/simmer/judge.rb,
lib/simmer/suite.rb,
lib/simmer/runner.rb,
lib/simmer/bootstrap.rb,
lib/simmer/re_runner.rb,
lib/simmer/util/record.rb,
lib/simmer/judge/result.rb,
lib/simmer/suite/result.rb,
lib/simmer/configuration.rb,
lib/simmer/core_ext/hash.rb,
lib/simmer/runner/result.rb,
lib/simmer/specification.rb,
lib/simmer/util/resolver.rb,
lib/simmer/util/evaluator.rb,
lib/simmer/util/record_set.rb,
lib/simmer/database/fixture.rb,
lib/simmer/util/file_system.rb,
lib/simmer/util/yaml_reader.rb,
lib/simmer/specification/act.rb,
lib/simmer/specification/stage.rb,
lib/simmer/suite/output_router.rb,
lib/simmer/database/fixture_set.rb,
lib/simmer/runner/timeout_error.rb,
lib/simmer/specification/assert.rb,
lib/simmer/suite/results_writer.rb,
lib/simmer/externals/file_system.rb,
lib/simmer/externals/spoon_client.rb,
lib/simmer/suite/pdi_output_writer.rb,
lib/simmer/externals/mysql_database.rb,
lib/simmer/specification/act/params.rb,
lib/simmer/externals/aws_file_system.rb,
lib/simmer/configuration/callback_dsl.rb,
lib/simmer/externals/local_file_system.rb,
lib/simmer/externals/spoon_client/result.rb,
lib/simmer/specification/stage/input_file.rb,
lib/simmer/specification/assert/assertions.rb,
lib/simmer/externals/sql_writers/sql_fixture.rb,
lib/simmer/specification/assert/assertions/table.rb,
lib/simmer/specification/assert/assertions/output.rb,
lib/simmer/specification/assert/assertions/bad_table_assertion.rb,
lib/simmer/specification/assert/assertions/bad_output_assertion.rb,
lib/simmer.rb

Overview

The main entry-point API for the library.

Defined Under Namespace

Modules: CoreExt, Database, Externals, Util Classes: Bootstrap, Configuration, Judge, ReRunner, Runner, Specification, Suite

Constant Summary collapse

VERSION =
'4.0.0'
DEFAULT_CONFIG_PATH =
File.join('config', 'simmer.yaml').freeze
DEFAULT_SIMMER_DIR =
'simmer'

Class Method Summary collapse

Class Method Details

.configuration(config_path: DEFAULT_CONFIG_PATH, simmer_dir: DEFAULT_SIMMER_DIR) ⇒ Object Also known as: make_configuration



63
64
65
# File 'lib/simmer.rb', line 63

def configuration(config_path: DEFAULT_CONFIG_PATH, simmer_dir: DEFAULT_SIMMER_DIR)
  Bootstrap.new(config_path: config_path, simmer_dir: simmer_dir).configuration
end

.configure {|callback_configuration| ... } ⇒ Object

Yields:

  • (callback_configuration)


68
69
70
# File 'lib/simmer.rb', line 68

def configure
  yield callback_configuration
end

.run(path, config_path: DEFAULT_CONFIG_PATH, out: $stdout, simmer_dir: DEFAULT_SIMMER_DIR) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/simmer.rb', line 48

def run(
  path,
  config_path: DEFAULT_CONFIG_PATH,
  out: $stdout,
  simmer_dir: DEFAULT_SIMMER_DIR
)
  Bootstrap.new(
    spec_path: path,
    config_path: config_path,
    simmer_dir: simmer_dir,
    callback_configuration: callback_configuration,
    console_out: out
  ).run_suite
end