RunRSpec
A lightweight VS Code extension to run RSpec test files directly from the editor.
✨ Features
- ✅ Run the current spec file if you're already in a
*_spec.rb file.
- 🔄 Automatically find and run the corresponding spec file for any Ruby file in
app/ .
- 🚫 If the spec file doesn't exist, it logs a helpful message.
- 💻 Runs the spec using a VS Code integrated terminal.
▶️ Usage
Open any Ruby file (.rb ) or RSpec file (*_spec.rb ).
Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac).
Run the command:
Run RSpec for Current File
It will:
- Run the file if it's a spec.
- Otherwise, look for a matching spec in the
spec/ directory and run it.
- Show a message if the matching spec file is not found.
🛠️ Example
🧠 Assumptions
- Your project uses the default
| |