spec_mirror

Develoment utility to run a mirroring spec whenever a source file is saved.
0.2.0 released

spec_mirror

A small test helper which will run the mirroring spec whenever a source file is saved. It requires a file watcher like Guardian.cr for example.

Build Status GitHub version

Installation

Add the development dependency to your shard.yml:

development_dependencies:
  spec_mirror:
    github: tilitribe/spec_mirror.cr

Run shards install

Usage

If you are using Guardian.cr, add the following lines to the guardian.yml config file:

files: ./src/**/*.cr
run: bin/spec_mirror %file%

Then start guardian and watch your specs run whenever you save a file in your src dir.

Contributing

  1. Fork it (https://github.com/tilitribe/spec_mirror/fork)
  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 a new Pull Request

Contributors

spec_mirror:
  github: tilishop/spec_mirror.cr
  version: ~> 0.2.0
License MIT
Crystal 1.1.0

Authors

Dependencies 0

Development Dependencies 0

Dependents 0

Last synced .
search fire star recently