Since rebar_deps:get_deps_dir/1 returns an absolute path, lists:member(Deps, Parts2) will always return false, thus .test.spec files in deps/ will not be ignored.