Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

philnash/ruby-quick-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Quick Test

Run your TestUnit, RSpec and Cucumber ruby test files from within Atom. Inspired by Sublime Test Ruby-Test.

Ruby Quick Test screenshot

Installing

Use the Atom package manager, which can be found in the Settings view or run apm install ruby-quick-test from the command line.

Usage

Ruby Quick Test can be used to quickly run a test file with a file name that matches the pattern /_(test|spec)\.rb$/ or /.(feature)$/. Test files ending in _test.rb will be run using the ruby command, files ending _spec.rb will be run with the rspec command and files ending .feature will be run with the cucumber command.

When the active editor is using such a file, you can run the tests with the key combination cmd-ctrl-t or by using the command palette (cmd-shift-p).

This currently doesn't cover MiniTest::Spec style files, but support is planned for those soon.

Commands

  • cmd-ctrl-t - Run the current test file
  • cmd-ctrl-e - Re-run the previous test file
  • cmd-ctrl-x - Show/hide the test panel

Todo

  • Tests!
  • MiniTest::Spec support
  • Support for running individual tests
  • Run the entire test suite using rake test, rake spec or rake cucumber
  • Issues/pull requests welcome

About

Run ruby test files quickly in Atom

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published