Module: Kiba::Extend::JobTest

Extended by:
Dry::Configurable
Defined in:
lib/kiba/extend/job_test.rb,
lib/kiba/extend/job_test/runner.rb,
lib/kiba/extend/job_test/job_testable.rb,
lib/kiba/extend/job_test/suite_runner.rb,
lib/kiba/extend/job_test/test_prepper.rb,
lib/kiba/extend/job_test/csv_job/blank.rb,
lib/kiba/extend/job_test/csv_job/equal.rb,
lib/kiba/extend/job_test/csv_job/testable.rb,
lib/kiba/extend/job_test/job_tests_runner.rb,
lib/kiba/extend/job_test/testclass_prepper.rb,
lib/kiba/extend/job_test/config_file_prepper.rb

Overview

Job testing is a way to set up tests of individual data values in the output of a specific job in your project. This helps catch situations where changes made in or outside of that job are causing unexpected results.

Defined Under Namespace

Modules: CsvJob, JobTestable Classes: ConfigFilePrepper, JobTestsRunner, Runner, SuiteRunner, TestPrepper, TestclassPrepper

Class Method Summary collapse

Class Method Details

.job_tests_dir_pathnil, String

Returns path to directory containing .yml files of job test config.

Returns:

  • (nil, String)

    path to directory containing .yml files of job test config



18
19
20
21
22
23
24
25
# File 'lib/kiba/extend/job_test.rb', line 18

setting :job_tests_dir_path,
reader: true,
default: nil,
constructor: ->(default) do
  return default unless default

  File.expand_path(default)
end