mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-05-15 07:32:42 +00:00
Excluding tags
This commit is contained in:
parent
c2e49cccfd
commit
3fdb40ef92
2
justfile
2
justfile
|
@ -493,7 +493,7 @@ docker-stop-web:
|
|||
#### MISC COMMANDS ####
|
||||
|
||||
# Run a specific mix command, eg: `just mix deps.get` or `just mix "deps.update pointers"`
|
||||
mix *args='':
|
||||
@mix *args='':
|
||||
just cmd mix $@
|
||||
|
||||
# Run a specific mix command, while ignoring any deps cloned into ./forks, eg: `just mix-remote deps.get` or `just mix-remote deps.update pointers`
|
||||
|
|
|
@ -4,13 +4,8 @@ ExUnit.configure formatters: [ExUnit.CLIFormatter, ExUnitNotifier]
|
|||
|
||||
# Code.put_compiler_option(:nowarn_unused_vars, true)
|
||||
|
||||
skip = [:skip, :todo, :fixme]
|
||||
skip = if System.get_env("TEST_INSTANCE")=="yes", do: skip, else: [:test_instance] ++ skip # skip two-instances-required federation tests
|
||||
skip = if System.get_env("CI"), do: [:browser] ++ skip, else: skip # skip browser automation tests in CI
|
||||
IO.inspect(skip, label: "Skipping tests tagged with")
|
||||
|
||||
ExUnit.start(
|
||||
exclude: skip,
|
||||
exclude: Bonfire.Common.RuntimeConfig.skip_test_tags(),
|
||||
capture_log: true # only show log for failed tests (Can be overridden for individual tests via `@tag capture_log: false`)
|
||||
)
|
||||
|
||||
|
@ -32,5 +27,4 @@ ExUnit.start(
|
|||
|
||||
Application.put_env(:wallaby, :base_url, Bonfire.Web.Endpoint.url())
|
||||
chromedriver_path = Bonfire.Common.Config.get([:wallaby, :chromedriver, :path])
|
||||
# TODO: skip browser-based tests if no driver is available
|
||||
if chromedriver_path && File.exists?(chromedriver_path), do: {:ok, _} = Application.ensure_all_started(:wallaby), else: IO.inspect("Note: Wallaby will not run because the chromedriver is missing")
|
||||
|
|
Loading…
Reference in a new issue