Markus Reiter
18e46b3ec2
Fix usage of HOMEBREW_LOAD_PATH
.
2018-06-18 16:23:35 +02:00
Markus Reiter
42e34db562
Always add cask/lib
to $LOAD_PATH
.
2018-06-07 18:42:30 +02:00
Andrew Janke
fc2d4dd444
brew tests: silence filter announcements
2018-06-06 18:17:15 -04:00
Markus Reiter
579a30c7bf
Fix rspec
deprecations.
2018-05-25 23:19:13 +02:00
Markus Reiter
de246cc528
Update Homebrew-Cask references.
2018-05-25 18:20:02 +02:00
Markus Reiter
c4222141ac
Revert "Update Homebrew-Cask references."
...
This reverts commit 4475651b548afdcf15c4cf7a7cb57baca1885186.
2018-05-25 17:57:32 +02:00
Markus Reiter
4475651b54
Update Homebrew-Cask references.
2018-05-25 17:56:16 +02:00
Markus Reiter
675d5fe61f
Fix spec_helper
cleanup.
2018-05-25 17:28:43 +02:00
Mike McQuaid
0408b78a23
tests: remove linkage cache env.
...
Otherwise this will mess with `brew tests`.
2018-05-24 15:09:41 +01:00
Mike McQuaid
4c365ea353
spec_helper: don't truncate output expectations.
...
It's really useful to be able to see the full output particularly when
a backtrace is in it.
2018-05-24 14:53:03 +01:00
Mike McQuaid
0c216bc5b8
spec_helper: don't truncate output expectations.
...
It's really useful to be able to see the full output particularly when
a backtrace is in it.
2018-05-24 14:28:20 +01:00
Markus Reiter
d0d7116dc8
Refactor Formulary
spec.
2018-04-20 19:11:22 +02:00
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Shaun Jackman
d70d91cf2a
test/utils/svn: Requires svn to succeed
2018-02-15 13:50:09 -08:00
Mike McQuaid
c57ab279ba
Use rspec-retry in flaky brew tests.
...
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-02-13 09:34:25 +00:00
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
959538caf5
cleaner_spec: have a single "cleans files" test.
...
This avoids noting the the Linux test as "pending" on Mac.
2017-11-29 18:27:16 +00:00
Mike McQuaid
fb6cf0c3f8
More environment filtering fixes
...
- Make `brew pull` pass through Git environment variables
- Whitelist all `TRAVIS_` variables.
2017-11-27 10:48:03 +00:00
Bob W. Hogg
3cd869651b
Add test fixtures for ELF executables
...
Add test/support/fixtures/elf/
and test/support/fixtures/tarballs/testball-0.1-linux.tbz
2017-11-26 08:37:57 -08:00
Mike McQuaid
5241d07474
environment filtering: pass through TRAVIS vars.
...
We use these internally so let's map them to `HOMEBREW_` variables.
2017-11-13 10:01:54 +00:00
Mike McQuaid
b9d9e63743
spec_helper: fix etc leak.
...
Fix the `etc/bash_completion.d/_brew_services` leak from the new
bash completion in the Homebrew/homebrew-services tap.
2017-11-05 13:20:08 +00:00
Markus Reiter
8821cdc492
Include FileUtils
in spec_helper
.
2017-10-24 19:39:40 +02:00
Markus Reiter
7e970216a3
Refactor and fix RuboCop specs.
2017-10-24 19:39:40 +02:00
Markus Reiter
9bee9ca575
Use “squiggly” heredocs.
2017-10-18 14:39:09 +02:00
Markus Reiter
2ad3a87045
Silence all specs by default.
2017-07-29 20:25:37 +02:00
Markus Reiter
aa8eb21b8c
Merge pull request #2861 from reitermarkus/cask-search-tty
...
Output plain list when running `brew cask search` without a TTY.
2017-07-24 00:04:43 +02:00
Markus Reiter
dccdac55a8
Add helper for testing TTY output.
2017-07-08 00:57:08 +02:00
Mike McQuaid
0b69ca85f7
spec_helper: add focus support.
...
When adding `, :focus` as a trailing argument to a `describe` or `it`
this allows you to only run that single test.
2017-07-07 16:34:29 +01:00
Markus Reiter
a1f9032b95
🗑️ Use AppleScript instead of Swift for trashing.
2017-06-24 09:15:37 +02:00
Mike McQuaid
c572081f8b
formula_desc_cop: tweak some rules.
...
Allow some specific lowercase words and provide an autocorrect for some
of these rules.
2017-06-08 15:13:10 +03:00
Mike McQuaid
d5155256ce
Fix audit version_scheme and revision checks.
...
Another attempt at fixing `brew audit` issues around detecting
`revision` and `version_scheme` changes correctly. First done in #1754
and #2086 (reverted in #2099 and #2100 ).
To ease future debugging a `ph` helper has been added to print a hash
and a series of RSpec tests to verify that the `revision`,
`version_scheme` and `version` formula version audits behave as
expected.
Fixes #1731 .
2017-04-23 18:56:22 +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
Markus Reiter
b24dc2268a
Move brew cask --version
into separate file.
2017-03-08 15:49:37 +01:00
Markus Reiter
eed5a69a51
Try fixing coverage.
2017-03-05 23:08:15 +01:00
Markus Reiter
4944d43d58
Move coverage reporting into brew tests
.
2017-03-05 23:08:14 +01:00
Markus Reiter
9fc6c7b2be
Move Cask specs into brew tests
.
2017-03-05 23:08:14 +01:00
Markus Reiter
a554902380
Add mktmpdir
helper method.
2017-02-28 15:06:32 +01:00
Markus Reiter
ebe4042b2f
Convert FormulaAuditor test to spec.
2017-02-28 13:46:13 +01:00
Markus Reiter
31b904655f
Use shorter before
syntax to skip tests.
2017-02-27 22:12:55 +01:00
Markus Reiter
004e8175c6
Add formula
spec helper.
2017-02-25 13:26:50 +01:00
Markus Reiter
c7121f6be5
Merge pull request #2104 from reitermarkus/spec-integration-test-helpers
...
Convert `brew desc` test to spec and add integration test helper methods.
2017-02-23 11:04:37 +01:00
Markus Reiter
2ab1f13168
Merge pull request #2090 from reitermarkus/spec-bottles
...
Convert Utils::Bottles test to spec.
2017-02-23 09:31:28 +01:00
Markus Reiter
9dda84ad6b
Add integration test helper methods.
2017-02-23 09:23:22 +01:00
Markus Reiter
dd99d656a3
Convert Utils::Bottles test to spec.
2017-02-21 21:45:34 +01:00
Markus Reiter
8bb46baebb
Add RSpec support for integration commands.
2017-02-21 20:23:47 +01:00
Markus Reiter
5ec9597810
Convert OS::Mac::Keg test to spec.
2017-02-21 04:52:53 +01:00
Markus Reiter
7d855a539d
Merge pull request #2037 from reitermarkus/spec-utils
...
Convert Utils test to spec.
2017-02-20 19:57:15 +01:00
Markus Reiter
f33efbe7c4
Convert LanguageModuleRequirement test to spec.
2017-02-20 13:58:30 +01:00
Markus Reiter
6dfbf7066b
Convert Utils::Bottles::Collector test to spec.
2017-02-19 23:55:12 +01:00
Markus Reiter
44d2617030
Handle Homebrew.failed
in spec_helper
.
2017-02-19 18:41:53 +01:00