Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 21, 2019 10:08 pm GMT

One of my favorite testing/productivity tools: guard

guard is not a new library. It has been a staple in many areas of Ruby development for years. Many of us use it, but I felt like shedding a bit of light on it as a great too folks should know about in general.

GitHub logo guard / guard

Guard is a command line tool to easily handle events on file system modifications.

Guard

IMPORTANT: Please upgrade to Ruby >= 2.4 before installing Guard! To install for older versions, update Bundler at least 1.12: gem update bundler and Bundler should correctly resolve to earlier gems for your given Ruby version.

Guard is currently accepting more maintainers. Please read this if you're interested in joining the team.

Gem Version Build Status Code Climate Test Coverage Inline docs Reviewed by Hound

Guard Icon

Guard automates various tasks by running custom rules whenever file or directories are modified

It's frequently used by software developers, web designers, writers and other specialists to avoid mundane, repetitive actions and commands such as "relaunching" tools after changing source files or configurations.

Common use cases include: an IDE replacement, web development tools, designing "smart" and "responsive" build systems/workflows, automating various project tasks and installing/monitoring various system services.

For a full categorized list of known

Guard automates various tasks by running custom rules whenever file or directories are modified.

At DEV, we use guard to run tests as files are saved in order to optimize our test-driven-development practices.

I say "we" and "our" without total certainty that it is used across the team and among contributors because it is not needed in our flow. This is probably one of the better things about its use with rspec. It is the cherry on top.

It's not a heavy-handed default, but so engrained in my own workflow, I almost forget it's not the default.

The gem is most popular in conjunction with Rails and testing, but I'd advise folks to check out its usefulness in any situation where saving a file can kick off a task. The guard ecosystem is vast.

Are there similar tools in other language environments folks check out?


Original Link: https://dev.to/ben/one-of-my-favorite-testing-productivity-tools-guard-2o0k

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To