Allow running rspec in interactive mode
Created by: mrexox
Subject of the issue
There can be a situation when one small test is failing and you spend hours to make it work. But initialization can take so long, so it is about 30 seconds waiting for initialization and 1 second to execute the test. I wonder, what if rspec supported interactive mode, like waiting for file or files for input and running them interactively? I can prepare a PR for that if is is acceptable.
Your environment
- Ruby version: 2.6.6
- rspec-core version: 2.14.8
Steps to reproduce
- Add a custom seeder to rspec that loads some data from a file into database.
- Write a small test
- Wait for a test to complete and see how long it takes to just seed the environment
Proposition
- Add an
-i, --interactive
flag that allows running rspec in interactive mode when it loads the environment once and only runs needed tests