Open netDalek opened 6 years ago
More info on this issue: when run for an umbrella app and it has in-umbrella dependencies they're build without TEST defined. Then when those dependency-apps are tested they are not rebuild with TEST, hence report to have 0 tests in them.
The workaround that allows running mix eunit
from project root is to pass compiler flags explicitly:
ERL_COMPILER_OPTIONS="[debug_info, {d,'TEST'}]" mix eunit
Hi, thanks for this mix task. I've found interesting bug. I've created simple repo to reproduce it https://github.com/netDalek/mix_eunit_test
If I run
mix eunit
fromapps/subupp
folder everiting is ok and it runs all 2 tests. But if I run the same from the root folder it runs only test withoutifdef(TEST)