aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
AgeCommit message (Collapse)Author
2017-01-30cleanup: consider version_schemeXu Cheng
`brew cleanup` should cleanup formulae which have the older version scheme.
2017-01-30Don’t use `assert_nil` in `tab_test`.Markus Reiter
2017-01-26*_test: use assert_nil when appropriate.Mike McQuaid
This is warned by the newer MiniTest.
2017-01-26*/Gemfile*: remove rake, version pins, master simplecov.Mike McQuaid
We’re upgrading SimpleCov to 0.13.0 so let’s update the rest of our gems while we’re at it.
2017-01-25Move Cask fixtures to `test/support/fixtures`.Markus Reiter
2017-01-24tests: give `e` helper in UtilTests a better nameAlyssa Ross
2017-01-24tests: add some emoji tests đź’ŻAlyssa Ross
2017-01-23tests: remove env helperAlyssa Ross
2017-01-23tests: slightly stricter match in tab testMarkus Reiter
Suggested by @reitermarkus in https://github.com/Homebrew/brew/pull/1890#discussion_r97234536, and then I added the \A and \Z.
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.
2017-01-22tests: remove remainder of ARGV stubsAlyssa Ross
I was waiting for confirmation that there wasn't a good reason for these to be stubbed before I removed them.
2017-01-22tests: set verbose in ENV instead of stubbing ARGVAlyssa Ross
2017-01-22tests: set developer in ENV rather than stubbingAlyssa Ross
2017-01-22tests: automatically restore ENV in teardownAlyssa Ross
2017-01-22tests: extract a common using_git_env methodAlyssa Ross
2017-01-22tests: remove more per-test file system cleanupAlyssa Ross
These locations are now all automatically cleaned up after every test.
2017-01-22tests: remove explicit tmpdir deletionsAlyssa Ross
These are no longer necessary.
2017-01-22tests: clean up file system for all testsAlyssa Ross
(No longer just integration tests.)
2017-01-21tests: reset ARGV in teardownAlyssa Ross
2017-01-21tests: clear tab cache in global teardownAlyssa Ross
2017-01-21tests: enforce `super` in lifecycle hooksAlyssa Ross
This will allow us to have global setup and teardown for tests. For example, we can automatically clear caches after each test, to avoid annoying intermittent failures like #1879 and #1886.
2017-01-19tests: revert modification to ARGV at end of testAlyssa Ross
Similar to 6fc1747e0550545b4fe80f5a1854d16dd2b08afe. I hadn't seen any test failures caused by this, but I noticed it in the process of trackign that down and it's an accident waiting to happen.
2017-01-19tests: add a missing Tab cache clearAlyssa Ross
This was responsible for the sporadic failures I encountered in #1878.
2017-01-18integration_command_test_case: improve fail outputMike McQuaid
Instead of `puts`ing when the failure occurs save it until the error message and print a prose description of what the failure was and the output from the command. This makes the output from failing tests significantly easier to read.
2017-01-17Merge pull request #1863 from alyssais/uses_ignore_untappedMike McQuaid
uses: properly handle untapped formulae in recursive dependency expansion (again!)
2017-01-17Merge pull request #1849 from alyssais/requirement_testsMike McQuaid
tests: test Formula#recursive_requirements
2017-01-16Revert "Revert "uses: properly handle untapped fo…Alyssa Ross
…rmulae in recursive dependency expansion"" This reverts commit dc9819b86c60b5c6fd10373ff318d8ef60f97d52.
2017-01-16tests: fix style of recursive_requirements testsAlyssa Ross
2017-01-16Merge pull request #1763 from ↵Mike McQuaid
minamijoyo/add-feature-github-release-download-strategy New feature: Allow download from private GitHub repository
2017-01-15tests: test Formula#recursive_requirementsAlyssa Ross
2017-01-08Fix rubocop style warning of download_strategyMasayuki Morita
2017-01-08Validate a token when initializing GitHubPrivateRepositoryDownloadStrategyMasayuki Morita
2017-01-08Generalize GitHubReleaseDownloadStrategy in order to support archive URLMasayuki Morita
2017-01-07Revert "uses: properly handle untapped formulae in recursive dependency ↵Mike McQuaid
expansion"
2017-01-05dependency: TapDependency#tap returns a TapAlyssa Ross
Previously, this returned a String, but a Tap instance seems much more sensible. I couldn't find anywhere this method was actually used, so the change shouldn't break anything.
2017-01-04tab: set homebrew_version in Tab.emptyAlyssa Ross
2017-01-04tests: remove temp tab homebrew_version overrideAlyssa Ross
This had to be added in #1750 to work around special-casing for tabs generated with Homebrew versions < 1.1.6. Now that 1.1.6 is the current version, we can remove this hack.
2017-01-03Deprecate Homebrew/versions, Homebrew/devel-only.Mike McQuaid
Don't use Homebrew/versions in a test and remove them both from the OFFICIAL_TAPS list (i.e. `brew search`).
2017-01-03Use util/github insted of open-uri in GitHubReleaseDownloadStrategyMasayuki Morita
2017-01-02New feature: GitHubReleaseDownloadStrategyMasayuki Morita
GitHubReleaseDownloadStrategy downloads tarballs from GitHub Release assets. To use it, add ":using => GitHubReleaseDownloadStrategy" to the URL section of your formula. This download strategy uses GitHub access tokens (in the environment variables GITHUB_TOKEN) to sign the request. This strategy is suitable for corporate use just like S3DownloadStrategy, because it lets you use a private GttHub repository for internal distribution. It works with public one, but in that case simply use CurlDownloadStrategy.
2017-01-01tests: optlink fake kegs in uninstall testAlyssa Ross
2017-01-01keg: check installed dependencies iff optlinkedAlyssa Ross
2017-01-01keg: keg_only kegs can have installed dependentsAlyssa Ross
2017-01-01keg: update installed dependency resolutionAlyssa Ross
Closes #1525. (See there for a motivation for this change.)
2016-12-31keg: test dep fallback with unknown formulaeAlyssa Ross
2016-12-31keg: handle dependencies of moved/renamed formulaeAlyssa Ross
In #1497 I switched from Keg#to_formula for comparing kegs to formulae to comparing the name and tap in the keg's tab to the name and tap of the formula. However, this fails to match if the name and tap of the formula have changed since the keg was installed, so it's clearly better to use Keg#to_formula where possible, and fall back to the information in the tab when #to_formula can't be used.
2016-12-31Merge pull request #1750 from alyssais/fallback_dependenciesMike McQuaid
keg: fall back for dependencies of buggy tabs