Erlang Common Test coverage specification file - Relative paths -
i using common test code coverage analysis in erlang project.
file structure
myproject/ ebin/ src/ test/ myproject.coverspec
the .beam-files source code located in ebin/ , tests in test/ test sources.
i using absolute paths .beam files in .coverspec-file.
myproject.coverspec:
{level,details}. {incl_dirs, ["/home/user/myproject/ebin", "/home/user/myproject/test"]}.
this works, far optimal project development distributed.
ct_run called base of project, myproject, paths don't seem relative myproject somewhere else.
i've tried paths relative both myproject , myproject/test w/o success.
my question is, paths in myproject.coverspec relative to?
in last erlang project have used ct
, cover
setup looked this:
cover.spec in project root directory:
{incl_dirs, ["apps/application_manager/ebin", "apps/session_counter/ebin", "apps/session_heartbeat/ebin", "apps/session_api/ebin"]}.
tests executed project root via;
ct_run -pa apps/*/ebin -pa deps/*/ebin -dir apps/*/test/ -logdir tests -- cover cover.spec
not sure if solves problem worked me.
Comments
Post a Comment