Though the correct way to test those functions should probably be by running `mix test`. ^.^
On Friday, July 1, 2016 at 7:10:36 AM UTC-6, Steven Leiva wrote: > > Louis, > > Great tip! Thanks. Funny how much more there is to IEx. I should certainly > take the time to look at the docs. > On Friday, July 1, 2016 at 3:14:03 AM UTC-4, Louis Pilfold wrote: >> >> Hey! >> >> In iex recompile/0 will recompile the current project, so no need to >> specify paths. >> >> http://elixir-lang.org/docs/stable/iex/IEx.Helpers.html#recompile/0 >> >> Cheers, >> Louis >> On 1 Jul 2016 05:49, "J David Eisenberg" <[email protected]> wrote: >> >>> Presume I am creating a new application with these commands: >>> >>> mix new my_app >>> cd my_app >>> >>> I then use the editor of my choice to put some functions into >>> lib/my_app.ex >>> >>> If I want to test those functions in iex, am I best off doing this: >>> >>> iex -S mix >>> >>> or >>> cd lib >>> iex >>> >>> If I do the former, then when I make changes to the source file, I have >>> to do this in iex: >>> >>> c("lib/my_app.ex") >>> >>> whereas the second version needs only >>> >>> c("my_app.ex") >>> >>> >>> Both of these seem to work equally well. Which is the correct or >>> preferred way, if either? Or is there a "best practices" method that I am >>> totally missing here? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "elixir-lang-talk" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/elixir-lang-talk/2efa495f-d3d0-44f0-9cf1-e029d8e2be94%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/elixir-lang-talk/2efa495f-d3d0-44f0-9cf1-e029d8e2be94%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/38edb4d7-1ef6-4ee7-837f-14f28201347f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
