Guard::Julia
Julia guard automatically launches respective tests when Julia files are modified.
The codebase's architecture is largely derived from guard-minitest.
Installation
Ruby must be installed, then run:
$ gem install bundler
$ cd /your/julia/project/dir
$ bundle init
Add this line to your project's newly created Gemfile:
gem 'guard-julia'
And then execute:
$ bundle
Usage
Please read Guard usage documentation.
To create the Guardfile run:
$ bundle exec guard init julia
Then run guard itself:
$ bundle exec guard
Options
all_on_start: true # Run all tests on startup
julia_file_path: 'julia' # File path to Julia executable
all_tests_file: 'test/runtests.jl' # File to run all tests
cli: ['--code-coverage'] # CLI arguments to Julia
env: {} # Environment variables
You can pass any of these options in the Guardfile like so:
guard :julia, cli: ['--code-coverage', '-p 1'] do
# ...
end
Contributing
- Fork it ( http://github.com/svs14/guard-julia/fork )
- Get all dependencies (
bundle
) - Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Make sure tests pass (
bundle exec rake test
) - Follow RuboCop's advice (
bundle exec rubocop
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request