Class: Shaf::Command::Test
- Defined in:
- lib/shaf/command/test.rb,
lib/shaf/command/test/filter.rb,
lib/shaf/command/test/runner.rb,
lib/shaf/command/test/runnable_method.rb
Defined Under Namespace
Classes: Filter, RunnableMethod, Runner
Constant Summary
Constants included from Utils
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
exit_with_error, identified_by, identifier, inherited, #initialize, options, usage
Methods included from Utils
#bootstrap, deep_symbolize_keys, deep_transform_keys, deep_transform_values, environment, gem_root, iana_link_relations, #in_project_root, #in_project_root?, #is_project_root?, model_name, pluralize, #project_root, #project_root!, rackify_header, read_config, #read_shaf_file, #read_shaf_file!, #read_shaf_upgrade_failure_version, #read_shaf_version, singularize, symbol_or_quoted_string, symbol_string, #write_shaf_file, #write_shaf_file!, #write_shaf_upgrade_failure, #write_shaf_version
Constructor Details
This class inherits a constructor from Shaf::Command::Base
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/shaf/command/test.rb', line 12 def call disable_autorun bootstrap(env: 'test') do setup_loadpath reporter.start spec_files.each do |file| lines = lines_to_run(file) run(file, lines) if lines end reporter.report end end |