Class: Homebrew::TestBot::Test Private
- Includes:
- Utils::Output::Mixin
- Defined in:
- test_bot/test.rb
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Direct Known Subclasses
Casks, PackagesDetect, Setup, TapSyntax, TestCleanup, TestFormulae
Instance Attribute Summary collapse
- #steps ⇒ Array<Step> readonly private
Instance Method Summary collapse
- #failed_steps ⇒ Array<Step> private
- #ignored_steps ⇒ Array<Step> private
- #test(*arguments, named_args: nil, env: {}, verbose: @verbose, ignore_failures: false, report_analytics: false, dry_run: @dry_run, &block) ⇒ Step private
Methods included from Utils::Output::Mixin
#issue_reporting_message, #odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_once, #opoo_outside_github_actions, #opoo_without_github_actions_annotation, #pretty_cannot_install, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_incompatible, #pretty_install_status, #pretty_installed, #pretty_removed, #pretty_uninstalled, #pretty_unmarked, #pretty_upgradable, #pretty_warning
Instance Attribute Details
#steps ⇒ Array<Step> (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
24 25 26 |
# File 'test_bot/test.rb', line 24 def steps @steps end |
Instance Method Details
#failed_steps ⇒ Array<Step>
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
14 15 16 |
# File 'test_bot/test.rb', line 14 def failed_steps @steps.select(&:failed?) end |
#ignored_steps ⇒ Array<Step>
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
19 20 21 |
# File 'test_bot/test.rb', line 19 def ignored_steps @steps.select(&:ignored?) end |
#test(*arguments, named_args: nil, env: {}, verbose: @verbose, ignore_failures: false, report_analytics: false, dry_run: @dry_run, &block) ⇒ Step
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'test_bot/test.rb', line 38 def test(*arguments, named_args: nil, env: {}, verbose: @verbose, ignore_failures: false, report_analytics: false, dry_run: @dry_run, &block) step = Step.new( arguments.map(&:to_s), named_args:, env:, verbose:, ignore_failures:, repository: @repository, ) @steps << step step.run(dry_run:, fail_fast: @fail_fast, &block) if ENV["HOMEBREW_TEST_BOT_ANALYTICS"].present? && report_analytics ::Utils::Analytics.report_test_bot_test(step.command_short, step.passed?) end step end |