Mike McQuaid
c46cecf277
tests: set HOME.
...
This is the only way to override the user's Git configuration which can
break tests when e.g. `gpg` cannot be found but signing is requested.
2018-09-02 12:56:31 +01:00
Markus Reiter
fbcaa8c85a
Resolve URL to get real file extension.
2018-08-31 16:51:23 +02:00
Markus Reiter
55cde526a8
Deprecate brew cask cleanup
.
2018-08-13 20:09:34 +02:00
Markus Reiter
9db17ab5bc
Allow forcing colored output.
2018-08-02 16:03:44 +02:00
Andrew Janke
e0a8a79921
Style fixes for Rubocop 0.57.1
2018-06-30 19:40:14 -04:00
Mike McQuaid
34ae75d511
brew.sh: enable linkage cache for developers.
...
This seems stable on CI so I think we can expose it to more people.
2018-06-11 20:10:40 +01:00
Markus Reiter
04cb105e46
Unset HOMEBREW_NO_EMOJI
for all tests.
2018-06-07 18:42:30 +02:00
Markus Reiter
845cb99e29
Ignore HOMEBREW_NO_GITHUB_API
when testing.
2018-06-07 14:02:31 +02:00
Gautham Goli
fba52e2f74
cli_parser: Store parsed args in Homebrew.args and access args everywhere else
2018-05-30 00:05:39 +05:30
Mike McQuaid
0408b78a23
tests: remove linkage cache env.
...
Otherwise this will mess with `brew tests`.
2018-05-24 15:09:41 +01:00
Markus Reiter
5e2d4d52ba
Refactor OsxfuseRequirement
spec.
2018-04-20 19:11:22 +02:00
Gautham Goli
48aecf2fa7
cli_parser: Refactor required argument for flag to '='
2018-04-14 19:04:24 +05:30
Gautham Goli
d22b750e17
Store common switch as Homebrew.args
global var
2018-04-10 00:00:35 +05:30
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Gautham Goli
ed387572ec
cli_parser: Add class method to make options declaration more readable
2018-03-25 18:02:29 +05:30
Gautham Goli
191e49511b
tests: Use Parser to parse args
2018-03-25 13:48:24 +05:30
Mike McQuaid
8ed1425ed7
tests: don't output seed multiple times.
...
This clutters up the output. Instead, hide it with a RSpec formatter and
generate and output it ourselves.
2017-12-15 09:14:44 +00:00
Mike McQuaid
ec574c0e7f
tests: unpin bundler.
...
These issues were fixed by https://github.com/Homebrew/brew/pull/2872
and https://github.com/Homebrew/brew/pull/2823 .
2017-07-13 17:15:03 +01:00
Mike McQuaid
021cef4b2b
Autocorrect Rubocop Style/SpecialGlobalVars.
2017-06-12 09:11:42 +01:00
Mike McQuaid
7d5b8a5cea
tests: cleanup tests.
...
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-07 16:25:07 +01:00
Mike McQuaid
2cbbdb51bf
tests: install specific Bundler version.
...
Otherwise `brew tests` fails with the latest. See the failing
Homebrew/homebrew-test-bot `master` build as an example.
2017-05-29 20:52:17 +01:00
Mike McQuaid
7a38bab333
Fixup all RuboCop warnings.
2017-05-29 18:43:18 +01:00
Mike McQuaid
4356016b4a
Use parallel RuboCop
...
This requires updating to Rubocop 0.49.0 which will require some fixes
to rules, in Homebrew/brew and Homebrew/homebrew-core but opening this
for now so I remember.
2017-05-29 18:42:02 +01:00
Mike McQuaid
9853a78397
Travis CI tweaks.
...
Attempt to improve Travis CI. This time without any vendoring gems
nonsense.
2017-05-08 08:38:25 +01:00
Mike McQuaid
57db2e539e
Revert "Merge pull request #2597 from MikeMcQuaid/vendor-gems"
...
This reverts commit 3e4547f52e7ebec633f8bfefc8a396d944edf908, reversing
changes made to 6edf9382bcc1240ad6f97c8b752cfe56cef9965d.
2017-05-07 17:28:39 +01:00
Mike McQuaid
ee253e465b
Vendor all Homebrew's gems.
...
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-05-07 13:52:57 +01:00
Mike McQuaid
a6df701fad
tests: reduce some noise.
...
- Tweak the way offline skipping happens
- Skip more tests that break when offline
- Hide more stdout output from tests.
2017-04-22 12:49:14 +01:00
Bob W. Hogg
7b6abc7630
Only run Linux-specific tests on Linux
2017-04-15 21:20:09 -07:00
Mike McQuaid
566d3cb58b
Document all short flags.
2017-04-02 10:14:58 +01:00
Maxim Belkin
8fa99fb879
tests: unset HOMEBREW_TEMP
...
Setting `HOMEBREW_TEMP` env. var [currently] breaks tests (`brew
tests`). Although this behavior looks like a bug, the solution is
straightforward: unset `HOMEBREW_TEMP`.
2017-03-21 09:31:09 -05:00
EricFromCanada
aee23ccb03
Add more flags and descriptions to man pages.
2017-03-05 21:45:15 -05:00
Markus Reiter
18d4220cbf
Remove BUNDLE_PATH
from brew tests
.
2017-03-05 23:33:36 +01:00
Markus Reiter
487294f815
Remove Minitest.
2017-02-28 22:48:57 +01:00
Misty De Meo
f332bf4a76
brew tests: filter out vendor/bundle
2017-02-28 22:42:41 +11:00
EricFromCanada
afc539f86e
Update brew's man page formatting and grammar
...
Also update command specifications to match descriptions.
2017-02-25 17:37:57 -05:00
Markus Reiter
3f8e52e574
Merge pull request #2091 from reitermarkus/spec-exclude-needs_macos
...
Exclude specs with `:needs_macos` tag when not on macOS.
2017-02-23 09:34:17 +01:00
Markus Reiter
48a211fc90
Convert os/mac/language
test to spec.
2017-02-23 02:47:33 +01:00
Markus Reiter
168a96d919
Exclude specs with :needs_macos
tag when not on macOS.
2017-02-21 21:55:16 +01:00
Markus Reiter
c4ac308302
Allow brew tests
to run specs.
2017-02-11 15:59:54 +01:00
Fabian Mettler
ba2ec8abcc
Fix: Documentation of --only in tests cmd
...
This pull request fixes the documentation for the —only flag of the
tests cmd.
2017-02-06 14:22:17 +01:00
Alyssa Ross
19e61355b3
tests: remove with_git_env method
...
A common git environment is now used in all tests, so this is no longer
required.
2017-01-22 20:54:37 +00:00
Josh Hagins
0a7307de64
tests: ignore test files in test/vendor/bundle
2016-11-17 19:21:05 -05:00
Markus Reiter
7457af2b23
Move test files back directly to test/
.
2016-11-16 23:52:38 +01:00
Markus Reiter
4efdbbde06
Rename fs_leak_log
to fs_leak.log
and move to tmp
.
2016-11-16 23:52:37 +01:00
Markus Reiter
6b6b27126d
Reorder and rename test files.
2016-11-16 23:52:37 +01:00
Markus Reiter
f863d61374
Move vendor/bundle
up one level to HOMEBREW_LIBRARY_PATH
.
2016-10-29 18:28:07 +02:00
Markus Reiter
cafe149780
Merge pull request #1145 from reitermarkus/module-function
...
Use `module_function` for `Homebrew` module.
2016-10-04 10:31:49 +02:00
Markus Reiter
0ab750bf24
Use module_function
for commands.
2016-10-02 00:24:47 +02:00
Bruce Steedman
15462cc817
delete verbose env vars in brew tests
2016-10-01 09:49:06 +01:00
Alyssa Ross
869fb02149
tests, cask-tests: serialize stdout on CI
2016-09-20 15:48:00 +01:00