[erlang-questions] cover & export_all
Tue Jul 9 12:56:25 CEST 2013
It seems that there is no way to cover-compile modules with export_all.
Here is a simple example:
test() -> ok.
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4]
[async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.9.1 (abort with ^G)
1> c(cover_test, [debug_info,export_all]).
** exception error: undefined function cover_test:test/0
Could someone explain why it is like this? Is it done on purpose?
Maybe it's a bug?
The reason I want modules to be cover-compiled with +export_all is
that it is sometimes convinient to have unit tests outside of a
module. Before unit tests are run the modules get compiled with
+export_all for tests to be able to access private functions. But the
situation is that it is not possibe in this case to enable coverage
More information about the erlang-questions