Skip to content

Misnamed test files are not counted as errors #15105

@Gladear

Description

@Gladear

Elixir and Erlang/OTP versions

Erlang/OTP 27 [erts-15.2.4] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]

Elixir 1.19.4 (compiled with Erlang/OTP 27)

Operating system

N/A

Current behavior

When a test file is not loaded nor ignored by :test_load_filters and :test_ignore_filters, the following warning is displayed:

warning: the following files do not match any of the configured `:test_load_filters` / `:test_ignore_filters`"

However, this "warning"-prefixed line does not seem to make mix test return a non-zero exit code, even with mix test --warnings-as-errors.

Expected behavior

I think it would be handy if this warning could be considered a warning, like warnings from test files.

Note that I'm open to submitting a PR if this "proposal" is accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions