 defmodule Kernel.CLI.InitTest do
   use ExUnit.Case, async: true
 
-  test :code_init do
+  test "handles code on initialization" do
     assert elixir('-e "IO.puts [?3]"') == '3\n'
 
     result = elixir('-e "IO.puts inspect(System.argv)" #{fixture_path("init_sample.exs")} -o 1 2 3')

    File.rm(tmp_path("Elixir.CompileSample.beam"))
  end

  test :compile_code_verbose do
    fixture = fixture_path "compile_sample.ex"
    assert elixirc('#{fixture} -o #{tmp_path} --verbose') ==
      'Compiled #{fixture}\n'

  end
end

defmodule Kernel.CLI.CompileTest do
  use ExUnit.Case, async: true

  test "compiles code" do
    fixture = fixture_path "compile_sample.ex"
    assert elixirc('#{fixture} -o #{tmp_path}') == ''
    assert File.regular?(tmp_path "Elixir.CompileSample.beam")
