[erlang-questions] coverage tests
Attila Rajmund Nohl
attila.r.nohl@REDACTED
Thu Jul 19 15:47:28 CEST 2018
Hello!
Is it possible to pass these arguments from rebar3 to cover?
Dmitry Kolesnikov <dmkolesnikov@REDACTED> ezt írta (időpont: 2018.
márc. 28., Sze, 13:47):
>
> Hello,
>
> Yes, it is possible.
>
> You can specify in cover.spec a list of projects for coverage analysis
> ```
> {level, details}.
> {incl_dirs, [
> "../_build/default/lib/app-a/ebin",
> "../_build/default/lib/app-b/ebin"
> ]}.
> ```
>
> Basically, use your test app to orchestrate testing of your main application.
>
> Best Regards,
> Dmitry
>
>
> > On 28 Mar 2018, at 14.42, Caragea Silviu <silviu.cpp@REDACTED> wrote:
> >
> > Hello,
> >
> > I have an app that's using a HTTP interface in order to expose the functionality.
> >
> > Also I have another project which implements functionality tests for the first app by running all kind of HTTP requests and compare the results with the expected one.
> >
> > My question is: there is any way to generate also a coverage test report for the app that's exposing the HTTP server ? to see how much of the code my tests is touching ?
> >
> > I looked over ct_run but most examples and user cases doesn't involve two different apps.
> >
> > Silviu
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-questions
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list