# Rcodetools 0.7.0 (TDC: "test-driven, 100% accurate completio

**URL:** <https://www.ruby-forum.com/t/rcodetools-0-7-0-tdc-test-driven-100-accurate-completio/107512>\
**Category:** Ruby\
**Created:** [June 22, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/rcodetools-0-7-0-tdc-test-driven-100-accurate-completio/107512 "2007-06-22T12:34:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tulkas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@tulkas](https://www.ruby-forum.com/u/tulkas)\
**Post date:** [June 22, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/rcodetools-0-7-0-tdc-test-driven-100-accurate-completio/107512/1 "2007-06-22T12:34:08Z")

</div>

rcodetools is a collection of Ruby code manipulation tools. It includes  
xmpfilter and editor-independent Ruby development helper tools, as well  
as  
emacs and vim interfaces.

Currently, rcodetools comprises:

- xmpfilter: automagic Test::Unit assertions/RSpec expectations and  
code  
annotations
- rct-complete: 100% accurate (editor-independent) code completion
- rct-doc: document browsing and code navigator
- rct-meth-args: precise method info (meta-programming aware) and TAGS  
generation
- rct-fork: pre-load heavy library(Rails etc) and speed up  
rct-complete/rct-doc (server)
- rct-fork-client: run Ruby programs from the current state of the  
rct-fork server
- ruby-toggle-file: toggle implementation file and test file
- rbtest: embedded Test::Unit for small scripts

rcodetools includes and supersedes xmpfilter, which has been much  
improved and  
extended by rubikitch, ultimately resulting in the rct-\* tools, which  
are  
almost entirely his work.

See [eigenclass.org](http://eigenclass.org/hiki.rb?rcodetools) for further information and  
[eigenclass.org](http://eigenclass.org/hiki.rb?rcodetools-screenshots) for the  
screenshots/screencasts.

# What’s new

## User-visible changes since 0.5.0

- “test-driven completion” (TDC) support for Emacs and vim (see  
README.TDC)
- –test (-t), --filename options for rct-complete and rct-doc, allowing  
to  
specify the test to be run for 100% accurate completion/documentation  
in the  
corresponding implementation
- ruby-toggle-file: finds the test file corresponding to a given  
implementation and vice versa
- rct-fork, rct-fork-client: allow to eliminate the overhead due to  
library  
loading (esp. useful for Rails)
- rbtest: executes unit tests in a single Ruby script
- –fork, --rbtest, --detect-rbtest supported by several commands
- xmpfilter’s --spec now autodetects the RSpec version and generates  
specifications with the appropriate syntax

# Download

rcodetools can be installed with RubyGems:

gem install rcodetools

If you try this shortly after a release and you get an old version/a 404  
error, please allow some time until the packages propagate to  
RubyForge’s  
mirrors.

rcodetools is available in tarball format. rcodetools’ executables will  
run  
faster when installed this way, since RubyGems add a noticeable  
overhead.

# Usage

rcodetools can be used with any editor, but the distribution includes  
emacs  
and vim interfaces (contributions for other editors are welcome); see  
README.emacs and README.vim in the sources for more information.

Further usage info available at  
[http://eigenclass.org/hiki.rb?rcodetools](http://eigenclass.org/hiki.rb?rcodetools)

# License

Copyright (c) 2006-2007 rubikitch [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://www.rubyist.net/~rubikitch/](http://www.rubyist.net/~rubikitch/)  
Copyright (c) 2005-2007 Mauricio F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://eigenclass.org](http://eigenclass.org)

Use and distribution subject to the terms of the Ruby license.
