anchor.diff:      case filelib:is_dir(BareTest) andalso not lists:any(F, ProjectApps) of
           %% `test` dir at root of project is already scheduled to be
           %%  included or `test` does not exist
  -        false -> {dir, AppTests};
  +        false ->
  +            %% The rest of the call-chain expects the list of tests to no be
  +            %% empty, thus we drop the parameter in that case entirely.
  +            case AppTests of
  +                [] ->
  +                    [];
  +                _ ->
  +                    [{dir, AppTests}]
  +            end;
           %% need to add `test` dir at root to dirs to be included
  -        true  -> {dir, AppTests ++ [BareTest]}
  +        true  ->
  +            [{dir, AppTests ++ [BareTest]}]
       end.
   
   application_dirs([], []) -> [];
  
positive.code: prepare_tests(State) ->
      %% command line test options
      CmdOpts = cmdopts(State),
      %% rebar.config test options
      CfgOpts = cfgopts(State),
      ProjectApps = rebar_state:project_apps(State),
  
negative.code:     rebar_utils:reread_config(Configs, [update_logger]),
  
      Opts = merge_opts(CmdOpts,CfgOpts),
      ?DEBUG("OPTS AFTER SELECT: ~p", [Opts]),
      discover_tests(State, ProjectApps, Opts).
  
  %% Merge the option lists from command line and rebar.config:
  