 
   @tag apps: [:test, :app_deps_sample, :app_deps2_sample, :app_deps3_sample, :app_deps4_sample]
   test "shows the application dependency tree excluding applications", context do
-    Mix.Project.push AppDepsSample
+    Mix.Project.push(AppDepsSample)
 
     in_tmp context.test, fn ->
       load_apps()
-      Mix.Tasks.App.Tree.run(["--format", "pretty", "--exclude", "app_deps4_sample", "--exclude", "app_deps3_sample"])
+
+      exclude = ["--exclude", "app_deps4_sample", "--exclude", "app_deps3_sample"]
+      Mix.Tasks.App.Tree.run(["--format", "pretty" | exclude])
 
       assert_received {:mix_shell, :info, ["test"]}
       assert_received {:mix_shell, :info, ["└── app_deps_sample"]}


  @tag apps: [:test, :app_deps_sample, :app_deps2_sample, :app_deps3_sample, :app_deps4_sample]
  test "shows the given application tree", context do
    Mix.Project.push AppDepsSample

    in_tmp context.test, fn ->
      assert_raise Mix.Error, "could not find application app_deps_sample", fn ->

Code.require_file("../../test_helper.exs", __DIR__)

defmodule Mix.Tasks.App.TreeTest do
  use MixTest.Case
