# Ruby Unit Testing Framework

**URL:** <https://rubytalk.org/t/ruby-unit-testing-framework/22065>\
**Category:** ruby-talk\
**Created:** [1 November 2005 11:34 UTC](https://rubytalk.org/t/ruby-unit-testing-framework/22065 "2005-11-01T11:34:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chintakrindi\_Meghan1](https://avatars.discourse-cdn.com/v4/letter/c/73ab20/32.png) [@Chintakrindi\_Meghan1](https://rubytalk.org/u/Chintakrindi_Meghan1)\
**Post date:** [1 November 2005 11:34 UTC](https://rubytalk.org/t/ruby-unit-testing-framework/22065/1 "2005-11-01T11:34:04Z")

</div>

Hi All

I am newbie to the Ruby language and just started going through the documentation.  
I wanted to know,is there any unit testing framework to unit test the developed code in ruby.  
(Similar to junit for the Java unit testing)

Thanks  
Meghanath

---

<div class="post-metadata">

**Author:** ![Farrel\_Lifson](https://avatars.discourse-cdn.com/v4/letter/f/3da27b/32.png) [@Farrel\_Lifson](https://rubytalk.org/u/Farrel_Lifson)\
**Post date:** [1 November 2005 11:41 UTC](https://rubytalk.org/t/ruby-unit-testing-framework/22065/2 "2005-11-01T11:41:07Z")

</div>

Test::Unit comes standard with Ruby nowadays.  
[http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/](http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/)

> **···**
>
> On 11/1/05, Chintakrindi Meghanath \<Meghanath@nextlinx.com\> wrote:
> 
> > Hi All
> > 
> > I am newbie to the Ruby language and just started going through the documentation.  
> > I wanted to know,is there any unit testing framework to unit test the developed code in ruby.  
> > (Similar to junit for the Java unit testing)
> > 
> > Thanks  
> > Meghanath

---

<div class="post-metadata">

**Author:** ![Guest15](https://avatars.discourse-cdn.com/v4/letter/g/6de8d8/32.png) [@Guest15](https://rubytalk.org/u/Guest15)\
**Post date:** [1 November 2005 15:16 UTC](https://rubytalk.org/t/ruby-unit-testing-framework/22065/3 "2005-11-01T15:16:39Z")

</div>

You want Test::Unit, there's an article available at:  
[http://www-128.ibm.com/developerworks/edu/os-dw-os-ruby1-i.html](http://www-128.ibm.com/developerworks/edu/os-dw-os-ruby1-i.html)

HtH  
-pate

> **···**
>
> On 11/1/05, Chintakrindi Meghanath \<Meghanath@nextlinx.com\> wrote:
> 
> > Hi All
> > 
> > I am newbie to the Ruby language and just started going through the documentation.  
> > I wanted to know,is there any unit testing framework to unit test the developed code in ruby.  
> > (Similar to junit for the Java unit testing)
> > 
> > Thanks  
> > Meghanath

---

<div class="post-metadata">

**Author:** ![javierg1975](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@javierg1975](https://rubytalk.org/u/javierg1975)\
**Post date:** [1 November 2005 22:12 UTC](https://rubytalk.org/t/ruby-unit-testing-framework/22065/4 "2005-11-01T22:12:08Z")

</div>

Hi  
I recently posted a Domain Specific Language (a wrapper to Test::Unit,  
actually) to make unit testing in Ruby look more "rubyish". It's still  
pretty much experimental but you are welcome to give it a look and  
comment back.  
You can find the thread here  
[http://groups.google.com/group/comp.lang.ruby/browse\_thread/thread/af6f20fbdfe3d09c](http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/af6f20fbdfe3d09c)  
and a small tutorial here  
[http://www.theniceweb.com/JaviersBlog/2005/10/tesla-test-specific-language-for-ruby.html](http://www.theniceweb.com/JaviersBlog/2005/10/tesla-test-specific-language-for-ruby.html)
