Logo
Explore Help
Sign In
mirrors/brew
1
0
Fork 0
You've already forked brew
mirror of https://github.com/Homebrew/brew.git synced 2025-07-14 16:09:03 +08:00
Code Issues Packages Projects Releases Wiki Activity
brew/Library/Homebrew/test/global_spec.rb

11 lines
275 B
Ruby
Raw Normal View History

test: ensure `require "formula"` isn't run on startup
2020-08-18 16:47:20 +01:00
# frozen_string_literal: true
Enable RSpec/DescribeClass
2024-04-03 09:12:47 -07:00
RSpec.describe Homebrew, :integration_test do
Verify more constants are not loaded at startup Loading different constants can be tricky with all the requires in Homebrew so we want to strengthen the existing checks to make sure that things are not getting required when there is a performance penalty. This expands the existing check to include more constants beyond `Formula` that we don't expect to be defined and that pull in a lot of other dependencies.
2024-08-10 14:27:29 -07:00
it "does not require slow dependencies at startup" do
expect { brew "verify-undefined" }
test: ensure `require "formula"` isn't run on startup
2020-08-18 16:47:20 +01:00
.to not_to_output.to_stdout
.and not_to_output.to_stderr
.and be_a_success
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 991ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API