aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/support/helper
AgeCommit message (Collapse)Author
2018-01-27Create `Hbc::Config` class.Markus Reiter
2018-01-17rubocop: fix brew style warnings.Mike McQuaid
2017-12-03Also remove writer method for `Hbc.binarydir`.Markus Reiter
2017-12-03Remove unused writer methods for `Hbc.caskroom` and `Hbc.cache`.Markus Reiter
2017-11-26Add test fixtures for ELF executablesBob W. Hogg
Add test/support/fixtures/elf/ and test/support/fixtures/tarballs/testball-0.1-linux.tbz
2017-10-24Refactor and fix RuboCop specs.Markus Reiter
2017-10-18Use “squiggly” heredocs.Markus Reiter
2017-10-07Add helper method for Cask fixture paths and refactor CaskLoader.Markus Reiter
2017-09-16List cask full-namesDan Wendorf
`brew cask list` supports the `--full-name` flag which will include the tap name for casks not part of the core caskroom/cask tap. For example, if cask "foo-beta" is installed from the caskroom/versions cask, `brew cask list --full-name` will report the name as "caskroom/versions/foo-beta".
2017-07-29Silence all specs by default.Markus Reiter
2017-07-24Merge pull request #2861 from reitermarkus/cask-search-ttyMarkus Reiter
Output plain list when running `brew cask search` without a TTY.
2017-07-13integration_test: try tests on Gem load failure.Mike McQuaid
This should help with debugging `Gem::LoadError`s (e.g. for https://github.com/Homebrew/homebrew-test-bot/pull/111).
2017-07-10integration_test: add simplecov libs when needed.Mike McQuaid
Don't add these unconditionally or with Bundler to speed things up a bit. Also, to speed things up further cache these arguments so we don't have to do the same generation every time.
2017-07-10Add test for non-TTY `brew cask search`.Markus Reiter
2017-07-08Add helper for testing TTY output.Markus Reiter
2017-07-07Fix `brew tests` on High Sierra.Mike McQuaid
The `brew test` tests were failing as they were unable to include `test/unit/assertions`. This is because it's a gem and we were setting the `GEM_HOME` so system gems were being ignored. While I was there and examining the `$LOAD_PATH`: reduce the number of things we add there by using `Bundler.with_clean_env` and only adding `HOMEBREW_LIBRARY_PATH` in the `$LOAD_PATH` if it isn't already there (which it always is [and has to be] for integration tests). This also seems to have the side effect of speeding up integration tests from 1m26s to 1m8s on my machine.
2017-06-08formula_desc_cop: tweak some rules.Mike McQuaid
Allow some specific lowercase words and provide an autocorrect for some of these rules.
2017-05-08Remove `to_s` from some `Pathname`s.Markus Reiter
2017-05-07Revert "Merge pull request #2597 from MikeMcQuaid/vendor-gems"Mike McQuaid
This reverts commit 3e4547f52e7ebec633f8bfefc8a396d944edf908, reversing changes made to 6edf9382bcc1240ad6f97c8b752cfe56cef9965d.
2017-05-07Vendor all Homebrew's gems.Mike McQuaid
Homebrew's actually ended up using a fair few gems. While we want to avoid Bundler at runtime (and this PR still does that, in fact uses Bundler even less at runtime than it did before) writing our own version to use at build-time seems redundant.
2017-04-22Hide sensitive tokens from install/test/post.Mike McQuaid
Hide these tokens to avoid malicious subprocesses e.g. sending them over the network. Also, support using these tokens with environment filtering and clear `HOMEBREW_PATH` from subprocesses to stop them sniffing it. Finally, use `HOMEBREW_PATH` to detect Homebrew’s user’s PATH for e.g. `brew doctor` etc.
2017-03-08Move `brew cask --version` into separate file.Markus Reiter
2017-03-05Move Cask specs into `brew tests`.Markus Reiter
2017-03-05Move Cask test helpers to `test/support`.Markus Reiter
2017-03-05Move Cask `shared_examples` to `test/support`.Markus Reiter
2017-02-28Remove Minitest.Markus Reiter
2017-02-28Add `mktmpdir` helper method.Markus Reiter
2017-02-27Merge pull request #2215 from reitermarkus/spec-integration-test-helperMarkus Reiter
Use `around` hook for shared "integration test" context.
2017-02-27Use `around` hook for shared "integration test" context.Markus Reiter
2017-02-27Convert Version test to spec.Markus Reiter
2017-02-25Add `formula` spec helper.Markus Reiter
2017-02-25Avoid warnings when HOMEBREW_PREFIX/bin is not in PATH.Markus Reiter
2017-02-23Add integration test helper methods.Markus Reiter
2017-02-21Add RSpec support for integration commands.Markus Reiter
2017-02-21Convert OS::Mac::Keg test to spec.Markus Reiter
2017-02-12rubocop: trailing comma in multiline method callsAlyssa Ross
Discussed in https://github.com/Homebrew/brew/pull/1987/files#r100693581. This was originally ommitted because it wasn't compatible with Ruby 1.8. (See https://github.com/Homebrew/legacy-homebrew/pull/48144#r49928971).
2017-02-11Add `spec_helper`.Markus Reiter
2017-02-11Use `Open3` for integration tests instead of manually forking.Markus Reiter
2017-02-10Revert "Use `Open3` for integration tests instead of manually forking."ilovezfs
2017-02-09Use `Open3` for integration tests instead of manually forking.Markus Reiter
2017-02-03Require `formulary` and `tap` in `Homebrew::TestCase`.Markus Reiter
2017-02-03Add comment about `FSLeakLogger` to `Homebrew::TestCase`.Markus Reiter
2017-02-03Use constant array of constants in `Homebrew::TestCase`.Markus Reiter
2017-02-03Don’t use `before_setup` and `after_teardown`.Markus Reiter
2017-02-03Use array of constants to set up test directories.Markus Reiter
2017-01-23tests: remove env helperAlyssa Ross
2017-01-22tests: remove with_git_env methodAlyssa Ross
A common git environment is now used in all tests, so this is no longer required.
2017-01-22tests: use more recent git committer dateAlyssa Ross
This will allow the `brew bundle` test to use the default git environment.
2017-01-22tests: remove unnecessary commentAlyssa Ross
See https://github.com/Homebrew/brew/pull/1890#discussion_r97229473.
2017-01-22tests: re-use with_environment in using_git_envMarkus Reiter
Proposed by @reitermarkus in https://github.com/Homebrew/brew/pull/1890#discussion_r97210285. I made one slight adjustment of preserving the previous date string in case anything was relying on it.