Run Ruby tests, Rspec examples, and Cucumber features from Atom
Clone or download
Pull request Compare This branch is 38 commits behind moxley:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
keymaps
lib
menus
spec
styles
.gitignore
.travis.yml
CHANGELOG.md
LICENSE.md
README.md
package.json

README.md

ruby-test package

Build Status

Run Ruby tests, Rspec examples, and Cucumber features from Atom, quickly and easily.

Running tests is quick and easy

Install

In Atom's Settings, go to Packages, search for "Ruby Test". Click the Install button.

Configure

IMPORTANT: Before configuring ruby-test, toggle to the test panel to activate the package: cmd-ctrl-x.

Ruby Test Settings view

Shell: executable or path to shell (e.g. fish, /bin/zsh)

Run

Open the test file you want to run, then issue one of the following:

  • cmd-ctrl-y - Run all the test files
  • cmd-ctrl-t - Run the current test file
  • cmd-ctrl-r - Run the test at the current line in test file
  • cmd-ctrl-e - Re-run the previous test (doesn't need to have the test file active)
  • cmd-ctrl-x - Show/hide the test panel

Features

  • Run all the tests in the project
  • Run the tests for current test file
  • Run single test at cursor
  • Run previous test
  • Configure the shell commands that run the tests
  • Supports Ruby managers, like rvm and rbenv
  • Supports bash, z-shell, fish
  • Supports Test::Unit, Rspec, Minitest, and Cucumber

Helpful Tips

Contributing

Any of the following are appreciated: