Skip to content

Commit 925b78a

Browse files
committed
fix: remove extra_src_dirs to prevent EUnit from finding CT modules
The previous configuration caused rebar3 eunit to find and try to load CT SUITE modules which are not meant to be run as EUnit tests.
1 parent 67f64ca commit 925b78a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rebar.config

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
{cover_opts, [verbose]}.
1818

1919
%% Common Test configuration
20+
%% E2E tests use auto_compile to compile helpers on demand
2021
{ct_opts, [
2122
{sys_config, "config/sys.config"},
2223
{logdir, "_build/test/logs"},
@@ -29,9 +30,7 @@
2930
{test, [
3031
{erl_opts, [debug_info, nowarn_export_all]},
3132
{deps, []},
32-
%% Include test helpers in compilation path
33-
{extra_src_dirs, ["test/e2e/common"]},
34-
%% Ensure CT can find compiled helpers
33+
%% CT opts for E2E tests - auto_compile handles test/e2e/common
3534
{ct_opts, [
3635
{sys_config, "config/sys.config"},
3736
{logdir, "_build/test/logs"},

0 commit comments

Comments
 (0)