Re: Raised exception when running tests

27 views
Skip to first unread message

José Valim

unread,
Jun 30, 2012, 1:43:41 AM6/30/12
to elixir-l...@googlegroups.com
Hello Francesco,

The elixir command expects a file as argument, if you want to give a pattern, please use -r instead:

time elixir -pa ebin -r "test/**/*_test.exs"

José Valim
Founder and Lead Developer



On Sat, Jun 30, 2012 at 4:59 AM, Francesco Rodriguez <lrodrig...@gmail.com> wrote:
Hi guys,


Everytime, i run make test, im having this error:

firehouse:elixir frodsan$ make test
Running tests ...
time elixir -pa ebin "test/**/*_test.exs"
** (ArgumentError) could not load /Users/frodsan/Dropbox/Code/dojo/roman_numerals/elixir/test/**/*_test.exs
    /private/tmp/homebrew-elixir-HEAD-sxXu/lib/code.ex:113: Code.require_file/2
    /private/tmp/homebrew-elixir-HEAD-sxXu/lib/enum.ex:454: Enum."-map/2-lc$^0/1-0-"/2
    /private/tmp/homebrew-elixir-HEAD-sxXu/lib/elixir/cli.ex:20: Elixir.CLI.process_argv/1
    :init.start_it/1
    :init.start_em/1

real 0m0.142s
user 0m0.115s
sys 0m0.025s
make: *** [test] Error 1

Anyone knows what am i doing wrong?

Thanks,

Francesco.

Francesco Rodriguez

unread,
Jun 30, 2012, 4:11:40 AM6/30/12
to elixir-l...@googlegroups.com
Thanks :)

2012/6/30 José Valim <jose....@gmail.com>



--

Reply all
Reply to author
Forward
0 new messages