Skip to content

Could not find module inferred from test file #25

@denispeplin

Description

@denispeplin

Exavier does not infer correctly some modules with dots in their names.

The error message:

MIX_ENV=test mix exavier.test

13:50:30.016 [error] Could not find module Elixir.ExavierCheck.Main inferred from test file test/exavier_check/main_test.exs. You can define your overrides using the :test_files_to_modules option in exavier.

13:50:30.019 [error] GenServer Exavier.Server terminating
** (MatchError) no match of right hand side value: :ok
    (exavier 0.3.0) lib/exavier/cover.ex:8: Exavier.Cover.lines_to_mutate/2
    (exavier 0.3.0) lib/exavier/server.ex:20: anonymous fn/2 in Exavier.Server.handle_call/3
    (elixir 1.13.0) lib/enum.ex:2396: Enum."-reduce/3-lists^foldl/2-0-"/3
    (exavier 0.3.0) lib/exavier/server.ex:18: Exavier.Server.handle_call/3
    (stdlib 3.16.1) gen_server.erl:721: :gen_server.try_handle_call/4
    (stdlib 3.16.1) gen_server.erl:750: :gen_server.handle_msg/6
    (stdlib 3.16.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3

I prepared a repository to reproduce the issue: https://github.com/denispeplin/exavier_check

To reproduce, checkout the repository and run

mix deps.get
MIX_ENV=test mix exavier.test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions