Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to tell rebar not to run eunit tests for the dependencies?

Tags:

When running:

./rebar eunit

the tests are run also for the external dependencies. Is there a way to change this behaviour? Maybe through the rebar.config file?

like image 305
Roberto Aloi Avatar asked Aug 10 '11 10:08

Roberto Aloi


3 Answers

./rebar eunit skip_deps=true

(or recursive=false with latest versions).

like image 129
Alexey Romanov Avatar answered Oct 02 '22 14:10

Alexey Romanov


You also can also use

./rebar eunit apps=your_app1,your_app2

This will run eunit test only for the specified applications.

like image 30
Richard Jonas Avatar answered Oct 02 '22 14:10

Richard Jonas


There is also an option to run tests only for specific application:

./rebar eunit app=app_name
like image 44
Ivan Dubrov Avatar answered Oct 02 '22 14:10

Ivan Dubrov