Make sure *both* .eunit and ebin directory exists before setting up the code path.
Make sure *both* .eunit and ebin directory exists before setting up the code path.

Normally the ebin directory doesn't contain any source files. Therefore it won't be kept in the repository by, at least, mercurial and also maybe git unless you put some .keep file in it or do some other hack. The ebin directory is created by rebar compile, but if rebar eunit is called before rebar compile, you end up with a {'EXIT', {{badmatch,{error,bad_directory}},...}. Another approach would be not to match cod:add_pathz(ebin_dir()) with ok, but I think this is an ok solution as well.

benoitc/rebar3,sile/rebar3,thomasbhatia/rebar,scatterbrain/rebar,heroku/rebar,choptastic/rebar,lpgauth/rebar,macintux/rebar,K2InformaticsGmbH/rebar,paulo-ferraz-oliveira/rebar,evnix/rebar,platinumthinker/rebar,erlang/rebar3,matwey/rebar,wcy123/rebar,cloudant/couchdb-rebar,platinumthinker/rebar,basho/rebar,lrascao/rebar,oubiwann/rebar,ferd/rebar3,tsloughter/rebar3,benoitc/rebar3,sile/rebar3,zugolosian/rebar3,RubberCthulhu/rebar,SiDen/rebar,jacktang/rebar,matwey/rebar,syl20bnr/rebar,csyangchen/rebar,matwey/rebar,lrascao/rebar,syl20bnr/rebar,beni55/rebar,project-fifo/rebar3,oubiwann/rebar,evnix/rebar,blt/rebar3,scatterbrain/rebar,rebar/rebar,bsmr-erlang/rebar,jacktang/rebar,K2InformaticsGmbH/rebar,paulo-ferraz-oliveira/rebar,linearregression/rebar3,paulo-ferraz-oliveira/rebar,fabiankrol/rebar3,processone/rebar3,bsmr-erlang/rebar,zugolosian/rebar3,deadok22/rebar,K2InformaticsGmbH/rebar,surik/rebar3,fauxsoup/rebar3,fishcakez/rebar3,GabrielNicolasAvellaneda/rebar,blt/rebar3,jbalint/rebar3,dcarastan/rebar,thomasbhatia/rebar,scatterbrain/rebar,processone/rebar3,lpgauth/rebar,K2InformaticsGmbH/rebar,dcarastan/rebar,rebar/rebar,wcy123/rebar,csyangchen/rebar,cloudant/couchdb-rebar,SiDen/rebar,macintux/rebar,djnym/rebar3,evnix/rebar,lpgauth/rebar,rebar/rebar3,CMoH/rebar,cloudant/couchdb-rebar,CMoH/rebar,fabiankrol/rebar3,macintux/rebar,kellymclaughlin/rebar3,oubiwann/rebar,beni55/rebar,linearregression/rebar3,norton/rebar,surik/rebar3,apache/couchdb-rebar,csyangchen/rebar,norton/rebar,beni55/rebar-1,fauxsoup/rebar3,heroku/rebar,walrusVision/rebar3,K2InformaticsGmbH/rebar,jacktang/rebar,bsmr-erlang/rebar,rebar/rebar3,beni55/rebar-1,deadok22/rebar,norton/rebar,bsmr-erlang/rebar,jbalint/rebar3,shkumagai/rebar,SiDen/rebar,platinumthinker/rebar,shkumagai/rebar,choptastic/rebar,matwey/rebar,dcarastan/rebar,apache/couchdb-rebar,walrusVision/rebar3,syl20bnr/rebar,matwey/rebar,lrascao/rebar,thomasbhatia/rebar,lrascao/rebar,lrascao/rebar,lrascao/rebar3,choptastic/rebar,norton/rebar,beni55/rebar,GabrielNicolasAvellaneda/rebar,CMoH/rebar,GabrielNicolasAvellaneda/rebar,vladdu/rebar3,saleyn/rebar3,apache/couchdb-rebar,rebar/rebar,norton/rebar3,RubberCthulhu/rebar,shkumagai/rebar,project-fifo/rebar3,basho/rebar