• Stars
    star
    36
  • Rank 710,409 (Top 15 %)
  • Language
    Ruby
  • License
    MIT License
  • Created 2 months ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An automated test runner for Rails that instantly executes specs based on a recent git diff output.

Devloop Gem Version GH Actions

Devloop is an automated Rspec runner for Rails apps inspired by TLDR and Rust (full story). The purpose of this tool is to provide continuous and instant feedback when working on the Rails app. It runs only specs from lines modified in the recent git commits. Even if you have a large spec/user_spec.rb file, you'll receive specs feedback in ~second on each file save.

Optionally, you can edit first line of any spec file (i.e. add #) to run all the tests from it.

Installation

In your Gemfile:

gem "devloop", group: :development

Now you can run:

bundle exec devloop

You can also use it without adding to the Gemfile:

gem install devloop
devloop

Remember to run the devloop command from the root of your Rails application.

Usage

While devloop process is running it will automatically execute tests related to the recently modified lines of code from spec/ folder.

Devloop will automatically detect if Spring is enabled for your Rails app. I've observed it reduces time needed to run specs by ~4x.

If currently there are no modified spec files, devloop will run tests based on changes in the most recent git commit.

This is in a very early stage of development so feedback is welcome.

More Repositories

1

rails-pg-extras

Rails PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more.
Ruby
1,072
star
2

termit

Translations with speech synthesis in your terminal as a ruby gem
Ruby
507
star
3

ecto_psql_extras

Ecto PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more.
Elixir
351
star
4

rails-brotli-cache

Drop-in enhancement for Rails cache, offering better performance and compression with Brotli algorithm
Ruby
252
star
5

normit

Translations with speech synthesis in your terminal as a node package
JavaScript
239
star
6

activerecord-analyze

Add EXPLAIN ANALYZE to Rails Active Record query objects
Ruby
209
star
7

smart_init

A simple gem for eliminating Ruby initializers boilerplate code, and providing unified service objects API
Ruby
177
star
8

ruby-pg-extras

Ruby PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more.
Ruby
123
star
9

node-postgres-extras

NodeJS PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more.
JavaScript
70
star
10

ecto_extras

Ecto helper functions.
Elixir
36
star
11

lazyme

A simple gem to help you optimize your shell workflow
Ruby
35
star
12

python-pg-extras

Python PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more.
Python
35
star
13

Locker

Ethereum Smart Contracts for locking Ether, ERC20 and ERC721 tokens based on time and price conditions
TypeScript
28
star
14

WaitForIt

Events and time based iOS app scenarios made easy.
Swift
26
star
15

.dotfiles

My development environment settings.
Shell
13
star
16

haskell-pg-extras

Haskell PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more.
Haskell
9
star
17

ruby-jemalloc-node-yarn

Docker image of Ruby with Jemalloc Node 16 LTS and Yarn
Dockerfile
9
star
18

railsSearchKit

This Chrome extension provides easy access to the search bars every Rails developer needs.
JavaScript
8
star
19

dont_you_count

Disable count queries for selected Active Admin tables.
Ruby
7
star
20

pi-hole-docker-compose

pi-hole-docker-compose
6
star
21

activerecord-implicit-order

Ruby
5
star
22

delegate_it

A drop in replacement for ActiveSupport delegate method in non Rails projects.
Ruby
4
star
23

active-admin-tips

Active Admin tips and performance optimizations in action
Ruby
4
star
24

rust-pg-extras

Rust PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more.
Rust
3
star
25

Siorbackend

Ruby
1
star
26

abstract_base

Abstract Class pattern Ruby gem
Ruby
1
star
27

FRP_introduction

Comparison between observer and reactive approach to login form validations.
JavaScript
1
star
28

focus.apki.io

Landing page for Focus app
HTML
1
star