Skip to content

Commit 1ab6710

Browse files
committed
add explicit mix test.req
1 parent d806f9f commit 1ab6710

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ mix test --include integration
2727
# Run only integration tests
2828
mix test --include integration --only integration
2929

30+
# Run the unit suite against the default Req adapter (mirrors `mix test`,
31+
# but explicitly sets FUNKSPECTOR_ADAPTER=req for symmetry with test.httpoison)
32+
mix test.req
33+
3034
# Run the unit suite against the opt-in HTTPoison adapter
3135
mix test.httpoison
3236

mix.exs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ defmodule Funkspector.Mixfile do
1414
aliases: aliases(),
1515
preferred_cli_env: [
1616
"test.all": :test,
17+
"test.req": :test,
1718
"test.httpoison": :test,
1819
"test.adapters": :test
1920
]
@@ -24,6 +25,9 @@ defmodule Funkspector.Mixfile do
2425
#
2526
# * `mix test.all` — run the full suite, including integration tests that
2627
# hit live URLs (httpbin.org, badssl.com, github.com, hex.pm, etc.).
28+
# * `mix test.req` — run the full suite under the default Req adapter by
29+
# setting `FUNKSPECTOR_ADAPTER=req`. Equivalent to `mix test` today, but
30+
# provided for symmetry with `mix test.httpoison`.
2731
# * `mix test.httpoison` — run the full suite under the opt-in HTTPoison
2832
# adapter by setting `FUNKSPECTOR_ADAPTER=httpoison`. The default
2933
# adapter (Req) is used otherwise.
@@ -35,6 +39,7 @@ defmodule Funkspector.Mixfile do
3539
"test --include integration",
3640
"cmd FUNKSPECTOR_ADAPTER=httpoison mix test --include integration"
3741
],
42+
"test.req": ["cmd FUNKSPECTOR_ADAPTER=req mix test"],
3843
"test.httpoison": ["cmd FUNKSPECTOR_ADAPTER=httpoison mix test"],
3944
"test.adapters": ["test", "test.httpoison"]
4045
]

0 commit comments

Comments
 (0)