Guard::Elixir
Guard::Elixir is a Guard plugin that automatically runs tests for the Elixir language using "mix test".
Installation
Manual installation
gem install guard-elixirInstallation using Bundler.
Add Guard::Elixir to your Gemfile:
group :development do
gem 'guard-elixir'
endand install it by running Bundler:
$ bundleConfiguration
Add guard definition to your Guardfile by running the following command:
guard init elixirRun guard to automatically run your Elixir tests
bundle exec guard startStandard Guardfile when using Guard::Elixir
guard :elixir do
watch(%r{^test/(.*)_test\.exs})
watch(%r{^lib/(.+)\.ex$}) { |m| "test/#{m[1]}_test.exs" }
watch(%r{^test/test_helper.exs$}) { "test" }
endMore information
Please read Guard usage doc
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Author
Author:: Patrick Wyatt (pat@codeofhonor.com)