<commit_before>Code.require_file "../../../test_helper", __FILE__

defmodule Mix.Tasks.RunTest do
  use MixTest.Case

  defmodule GetApp do
    def project do
      [
        app: :get_app,
        version: "0.1.0",
        deps: [
          { :git_repo, "0.1.0", git: MixTest.Case.fixture_path("git_repo") }
        ]
      ]
    end

    def location do
      __FILE__
    end
  end

  test "run command with dependencies" do
    Mix.Project.push GetApp

    in_fixture "no_mixfile", fn ->
      Mix.Tasks.Deps.Get.run []
      Mix.Tasks.Run.run ["Mix.shell.info", "GitRepo.hello", "--unknown"]
      assert_received { :mix_shell, :info, ["World"] }
    end
  after
    Mix.Project.pop
  end<commit_msg>Try to get more info on the build failure<commit_after>Code.require_file "../../../test_helper", __FILE__

defmodule Mix.Tasks.RunTest do
  use MixTest.Case

  defmodule GetApp do
    def project do
      [
        app: :get_app,
        version: "0.1.0",
        deps: [
          { :git_repo, "0.1.0", git: MixTest.Case.fixture_path("git_repo") }
        ]
      ]
    end

    def location do
      __FILE__
    end
  end

  test "run command with dependencies" do
    Mix.Project.push GetApp

    in_fixture "no_mixfile", fn ->
      Mix.Tasks.Deps.Get.run []
      Mix.Tasks.Run.run ["Mix.shell.info", "GitRepo.hello", "--unknown"]
      assert_received { :mix_shell, :info, ["World"] }
    end
  after
    Mix.Shell.Process.flush IO.inspect(&1)
    Mix.Project.pop
  end
{'fraction_non_alphanumeric': 0.13166779203241052, 'fraction_numerical': 0.008777852802160702, 'mean_word_length': 2.1464968152866244, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2119314', 'n_tokens_mistral': 523, 'n_tokens_neox': 514, 'n_words': 117}