Plugins - single test

StarAdd to favorites

SingleTest

Run specific testcase/tests or spec/example.

Testing a single spec, a single test, a single testcase or a single example is a great timesaver when debugging a small problem while having a large testsuite, or a testsuite with a lot of failures…

Looks for a file with the name you specified: name or subfolder/name … Will search the root folder first(/controllers) and then all subfolders(/controllers/admin)

Example

rake test:blog -> only the Blog Testcase

rake spec:blog -> only the Blog Spec

rake test:blog:create -> only the tests matching /create/ in Blog

rake spec:blog:delete -> only the first example matching /create/ in Blog

rake test:blogs_C -> only the BlogsController Test

rake test:’admin/blogs_con’ -> only BlogsController Test in admin folder

rake test:x -> first test matching x*_test.rb (searched in order: unit,functional,integration,any folder)

Copyright © 2008 Michael Grosser, released under the MIT license

Michael Grosser

http://code.google.com/p/small-plugins/

http://small-plugins.googlecode.com/svn/trunk/single_test/

Rails' (MIT)

  • Currently 5.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Testing

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?