Mike McQuaid
e9f55a8f71
tests: default to API mode enabled.
...
While we're here, also add `brew tests --no-parallel` which I relied
on during testing.
Pretty much anywhere we rely on a stubbed formula on disk to work: we
need to disable the API.
2025-06-10 15:53:27 +01:00
Rui Chen
79ed2c6e61
chore: fix typos
...
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-12-28 15:53:35 -05:00
Rylan Polster
b1db0ee290
Rename load method when preferring installed casks
2024-09-10 13:54:12 -04:00
Rylan Polster
8cb62b1398
Set correct tap when loading installed casks
2024-09-10 13:34:40 -04:00
Philippe Eberli
20fb068085
Fix migrations of formulae and casks to non homebrew taps
2024-06-08 16:29:23 +02:00
apainintheneck
74aea8e92d
spec_helper: add :no_api test scope
...
This sets the HOMEBREW_NO_INSTALL_FROM_API environment variable
to prevent the selected tests from using the API. We will need
this as we transition to having the API be enabled by default
when running the tests but it's also nice as a sanity check
with the :needs_utils_curl scope in a few places.
2024-03-19 22:18:02 -07:00
Markus Reiter
a24da6b072
Remove FromDefaultNameLoader
to avoid warning twice.
2024-03-06 23:14:28 +01:00
Markus Reiter
9cfc7ef9bd
Clear all tap caches before each test.
2024-02-22 17:56:47 +01:00
Douglas Eichelberger
26eda5a303
git grep -l '^describe' | xargs gsed -i 's|^describe|RSpec.describe|g'
2024-02-19 13:57:27 +00:00
Markus Reiter
adbd11a0db
Fix flaky tests.
2024-02-16 10:49:32 +01:00
Markus Reiter
18150d9629
Demonstrate flaky tests.
2024-02-16 10:39:21 +01:00
Markus Reiter
c8058a3859
Add tests for cask migrations to default tap.
2024-02-13 21:27:36 +01:00
Markus Reiter
889854b0b3
Merge FromTapPathLoader
into FromPathLoader
.
2024-02-08 16:20:32 +01:00
Markus Reiter
e5a6f765da
Revert "Merge pull request #16608 from bevanjkay/revert-16596-cask-rename-migrations"
...
This reverts commit 5799e8541567385c4d729cc3f0062b45e55b9936, reversing
changes made to 677517132782b276ba1c4ba77456adf7540d99ba.
2024-02-07 02:02:02 +01:00
Bevan Kay
f0b8845ad6
Revert "Handle tap migrations in CaskLoader
."
2024-02-06 20:16:03 +00:00
Markus Reiter
0fa503b827
Test CaskLoader::for
with both short and full tokens.
2024-02-06 20:20:39 +01:00
Markus Reiter
094761dcd9
Add tests for CaskLoader::for
.
2024-02-06 19:56:09 +01:00