aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cmd
AgeCommit message (Collapse)Author
2018-02-13Use rspec-retry in flaky brew tests.Mike McQuaid
We have a few tests that are intermittently flaky. Let's try this to see if we can get them a bit more reliable.
2018-01-21rubocop: don't always display cop names.ilovezfs
2018-01-21(un)linkapps: hide from manpage, use odeprecated.Mike McQuaid
2018-01-15rubocop 0.52.1Mike McQuaid
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-18Use “squiggly” heredocs.Markus Reiter
2017-10-10Set RuboCop maximum to current maximum.Markus Reiter
2017-09-10spelling: shouldJosh Soref
2017-09-07home_spec: use different test formula.Mike McQuaid
Instead of `testball` use a formula named `testballhome` to avoid this clashing with any other formula named testball.
2017-08-31search_remote_tap spec: fix test offlineMisty De Meo
Even though we stub the JSON response, the method being tested always returns [] immediately if HOMEBREW_NO_GITHUB_API is set.
2017-08-22upgrade more urls to httpsViktor Szakats
2017-08-15search: explain why it takes the time it does.Mike McQuaid
Provide a bit of clarity that this isn't just searching a local database but doing an GitHub API and Git history query.
2017-08-11Fix test typoBen Muschol
2017-08-11Add a testBen Muschol
2017-08-07cmd/search: use new Fedora package searchBob W. Hogg
pkgdb has been put into read-only mode, so it won't be updated for new Fedora releases going forward. Use apps.fedoraproject.org/packages instead. Signed-off-by: Bob W. Hogg <rwhogg@linux.com>
2017-07-29Silence all specs by default.Markus Reiter
2017-07-18Add a rubocop config file to control cops' execution in audit and styleGautham Goli
2017-06-07tests: cleanup tests.Mike McQuaid
Remove pending tests that are never run on CI (i.e. require `--online`), remove fixtures for those tests and just make `--official-cmd-taps` run by `--online` instead.
2017-06-04Add test for `brew style`.Markus Reiter
2017-05-27Improve some `brew install` messaging.Mike McQuaid
Improve the messaging around `brew install` when there's a possible user action such as an `upgrade` or `link` and don't tell people to `install --force` when it's unnecessary. While I did this, tweak the output and function usage in a couple of related places. Some example output before this change: ``` Warning: openssl is a keg-only and another version is linked to opt. Use `brew install --force` if you want to install this version Warning: mysql@5.6 is a keg-only and another version is linked to opt. Use `brew install --force` if you want to install this version Warning: analog-6.0_1 already installed Warning: bash-completion@2-2.5 already installed, it's just not linked. ``` Some example output after this change: ``` Error: openssl 1.0.2k is already installed To upgrade to 1.0.2l, run `brew upgrade openssl` Warning: mysql@5.6 5.6.36_1 is already installed Warning: analog 6.0_1 is already installed Warning: bash-completion@2 2.5 is already installed, it's just not linked. You can use `brew link bash-completion@2` to link this version. ```
2017-05-08Remove `to_s` from some `Pathname`s.Markus Reiter
2017-04-25formula_installer: improve install/upgrade messageMike McQuaid
If you `brew install` a formula that's already installed you get: Warning: ripgrep-0.5.1 already installed If you `brew install` an outdated formula that's installed you get: Error: ripgrep-0.5.1 already installed. To install this version, first `brew unlink ripgrep` Instead, suggest that the user should `brew upgrade` in this case. If the formula isn't outdated use the previous message.
2017-04-25Add `GitHub::search_code` method.Markus Reiter
2017-04-24search: use single HTTP call for tap searches.Mike McQuaid
Use GitHub's code search API to search using the filename based on the search query. This means we only need a single HTTP call and no more multithreading madness. This also means we're able to search everything in the Homebrew and Caskroom organisation by default without having to maintain a list of things to search (and not) in here.
2017-04-23Fix and remove various TODOs.Mike McQuaid
Fix those that can be done so without tearing Homebrew to pieces and remove the comments for those that can never be done.
2017-04-22tests: reduce some noise.Mike McQuaid
- Tweak the way offline skipping happens - Skip more tests that break when offline - Hide more stdout output from tests.
2017-04-01Fix the 'export PATH' message in `link` for a keg-only formulaEugene Nikolsky
Commit 4cae6a724e6d684eb157dd6d7328755694f228b2 introduced the message, but it printed the wrong path, e.g. for `brew link sqlite`: ``` If you need to have this software first in your PATH instead consider running: echo 'export PATH="/usr/local/opt/sqlite:$PATH"' >> ~/.zshrc/bin ``` where `/bin` is appended at the end, but should be inserted before `:$PATH`: `echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrc`. This patch fixes that and updates a test to verify it.
2017-03-27Add pinned version to outdated json outputWilliam Roe
The structure should be consistent, so there are always pinned and pinned_version fields even if there are no pinned versions for a given formula.
2017-03-27Add pinned version to outdated outputWilliam Roe
2017-03-27Add test for verbose brew outdated outputWilliam Roe
Split the tests up into quiet and verbose output with contexts.
2017-03-20cmd/log: improve output messaging.Mike McQuaid
This wasn’t adapted to the new, multiple repository world.
2017-03-10test: fix tests with a shallow clone.Mike McQuaid
In this case `HOMEBREW_VERSION` is `>1.1.0 (no git repository)` so these tests failed. This was the cause of the Homebrew/homebrew-test-bot Linux CI failures as it was testing a shallow clone.
2017-03-05Silence `cmd/cask` test.Markus Reiter
2017-02-28Add `mktmpdir` helper method.Markus Reiter
2017-02-27Merge pull request #2208 from reitermarkus/spec-uninstallMarkus Reiter
Convert `brew uninstall` test to spec.
2017-02-27Convert `brew commands` test to spec.Markus Reiter
2017-02-27Convert `brew uninstall` test to spec.Markus Reiter
2017-02-26Convert `cmd/update-report` test to spec.Markus Reiter
2017-02-25Convert `cmd/info` test to spec.Markus Reiter
2017-02-25Avoid warnings when HOMEBREW_PREFIX/bin is not in PATH.Markus Reiter
2017-02-25Convert `brew install` test to spec.Markus Reiter
2017-02-25Merge pull request #2114 from reitermarkus/spec-infoMarkus Reiter
Convert `brew info` test to spec.
2017-02-25Merge pull request #2120 from reitermarkus/spec-switchMarkus Reiter
Convert `brew switch` test to spec.
2017-02-25Merge pull request #2124 from reitermarkus/spec-upgradeMarkus Reiter
Convert `brew upgrade` test to spec.
2017-02-25Merge pull request #2144 from reitermarkus/spec-readallMarkus Reiter
Convert `brew readall` test to spec.
2017-02-25Merge pull request #2115 from reitermarkus/spec-linkappsMarkus Reiter
Convert `brew linkapps` test to spec.
2017-02-25Merge pull request #2127 from reitermarkus/spec-usesMarkus Reiter
Convert `brew uses` test to spec.
2017-02-25Merge pull request #2125 from reitermarkus/spec-unlinkMarkus Reiter
Convert `brew unlink` test to spec.
2017-02-25Merge pull request #2128 from reitermarkus/spec-unpackMarkus Reiter
Convert `brew unpack` test to spec.
2017-02-25Merge pull request #2122 from reitermarkus/spec-uninstallMarkus Reiter
Convert `brew uninstall` test to spec.