0.01
No commit activity in last 3 years
No release in over 3 years
Guard::Elixir automatically runs Elixir 'mix' tests
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

Runtime

>= 0
 Project Readme

Guard::Elixir

Gem Version Build Status

Guard::Elixir is a Guard plugin that automatically runs tests for the Elixir language using "mix test".

Installation

Manual installation

gem install guard-elixir

Installation using Bundler.

Add Guard::Elixir to your Gemfile:

group :development do
  gem 'guard-elixir'
end

and install it by running Bundler:

$ bundle

Configuration

Add guard definition to your Guardfile by running the following command:

guard init elixir

Run guard to automatically run your Elixir tests

bundle exec guard start

Standard 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" }
end

More information

Please read Guard usage doc

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author

Author:: Patrick Wyatt (pat@codeofhonor.com)