retest
Rubocop
retest | Rubocop | |
---|---|---|
6 | 7 | |
121 | 11,323 | |
- | - | |
7.4 | 9.8 | |
about 2 months ago | about 3 years ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
retest
-
Minitest, we've been doing it wrong?
Whatever you choose Retest (a gem I maintain) will acknowledge both naming conventions out of the box to increase the number of compatible Ruby projects. This is done in release 1.10.0. For example, you can now use Retest with Puma.
-
For those using VSCode, is there a faster way to run "rspec" on the file shown in my active tab (a _spec.rb file)?
I created a gem: Retest which works on the terminal. A bit like Guard without any setup. The gem is smart enough to find the correct file to test after you save any.rb file.
-
Is using the gem Guard still state of the art in TDD with Ruby?
I use retest. It works on every standard Ruby projects with no setup (understand no .Guardfile or Gemfile update). If you follow rspec, rails, rake or ruby standard file structure you get running in less than a minute. As a contractor I can checkout any repo and start TDD without caring about the repo setup. I use it even when Guard is already installed because the experience is consistent across all projects. It also has a —diff option that runs only spec files relevant from the diffs with another branch to run a final check before creating a pull request and triggering the whole test suite on CI.
-
Any love for MiniTest?
But whatever the project I’m working on is, I always try using retest https://github.com/AlexB52/retest for awesome refactoring and TDD because it works with both Minitest and RSpec out of the box. Sorry for the shameless promotion.
-
Can I run guard without adding it to a project?
Hi, I have created a gem called retest that helps you run specs after a file change without adding any configuration files to a repo. I created it for the specific reason you’re mentioning as I work in a consultancy. It is supposed to be dev centric and works with any ruby projects. I use it while working or refactoring. It might suits you, have a look
-
Refactoring in Ruby
A great book by Sandi Metz is 99 bottles of OOP in Ruby where she explains heaps about refactoring. One of the best book I have read. I know you asked for article or videos but if you have time, it takes a day or two to read. I made a gem to help people refactor the same way she describes in the book. It will speed up your feedback loop when refactoring: retest
Rubocop
-
What’s your day to day development env set up?
Parenthesis are mostly optional in Ruby, Seattle style takes it to an extreme where you omit any character not required for the code to run. https://github.com/rubocop-hq/rubocop/issues/4793
- Mais de 10 coisas para fazer antes de solicitar revisão do seu Pull Request
-
RuboCop Turns 10
No, it's not?! The latest version is 1.28.2: https://rubygems.org/gems/rubocop
- what ruby or rails open source projects a beginner-to-intermediate developer can easily contribute to?
-
Refactoring in Ruby
Running rubocop might give you a few tips regarding naming conventions and best practices
-
Beginner's guide to JavaScript static code analysis
Every language that I’ve ever worked in has a linter written for it. JavaScript has ESLint; Python has Black, and Ruby has RuboCop. These linters do the simple job of making sure your code follows the prescribed set of style rules. A few linters like RuboCop also enforce good practices such as atomic functions and better variable names. Such hints are very often helpful in detecting and fixing bugs before they cause issues in production.
-
Racism is no more...
It's like rubocop problem: https://github.com/rubocop-hq/rubocop/issues/8091
What are some alternatives?
entr - Run arbitrary commands when files change
Rubycritic - A Ruby code quality reporter
minitest - minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking.
Brakeman - A static analysis security vulnerability scanner for Ruby on Rails applications
Puma - A Ruby/Rack web server built for parallelism
Reek - Code smell detector for Ruby
rerun - Restarts an app when the filesystem changes. Uses growl and FSEventStream if on OS X.
Pronto - Quick automated code review of your changes
vim-test - Run your tests at the speed of thought
rails_best_practices - a code metric tool for rails projects
rubygems - Library packaging and distribution for Ruby.
SimpleCov - Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites