# What are the options to write tests, currently?

**URL:** <https://www.ruby-forum.com/t/what-are-the-options-to-write-tests-currently/154530>\
**Category:** IronRuby\
**Created:** [December 1, 2008, 10:15am UTC](https://www.ruby-forum.com/t/what-are-the-options-to-write-tests-currently/154530 "2008-12-01T10:15:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thbar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@thbar](https://www.ruby-forum.com/u/thbar)\
**Post date:** [December 1, 2008, 10:15am UTC](https://www.ruby-forum.com/t/what-are-the-options-to-write-tests-currently/154530/1 "2008-12-01T10:15:10Z")

</div>

Hello,  
I’m documenting myself to see what are the various options currently  
available to write IronRuby code to unit-tests C# assemblies.

I gave MSpec a try and it’s already fine ([30685’s gists · GitHub](http://gist.github.com/30685)).

Test::Unit seems to work well too (good work!) after a first test.

Did anyone play with RSpec, Shoulda or anything else ?

cheers

Thibaut BarrÃ¨re

---

<div class="post-metadata">

**Author:** ![thbar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@thbar](https://www.ruby-forum.com/u/thbar)\
**Post date:** [December 1, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/what-are-the-options-to-write-tests-currently/154530/2 "2008-12-01T16:06:01Z")

</div>

Still one or two outstanding issues around RSpec, but that is what you  
should be aiming for 🙂 However, even with those issues fixed,  
running it on an actual system might not be the best idea due to some  
performance issues.

MSpec is a good, if not very limited, and is what the team are using.  
I haven’t looked at Test::Unit implementation.

On Mon, Dec 1, 2008 at 9:14 AM, Thibaut Barrère

---

<div class="post-metadata">

**Author:** ![thbar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@thbar](https://www.ruby-forum.com/u/thbar)\
**Post date:** [December 5, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/what-are-the-options-to-write-tests-currently/154530/3 "2008-12-05T16:49:25Z")

</div>

On Mon, Dec 1, 2008 at 4:14 AM, Thibaut Barrère  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello,  
> I’m documenting myself to see what are the various options currently  
> available to write IronRuby code to unit-tests C# assemblies.  
> I gave MSpec a try and it’s already fine ([30685’s gists · GitHub](http://gist.github.com/30685)).  
> Test::Unit seems to work well too (good work!) after a first test.  
> Did anyone play with RSpec, Shoulda or anything else ?

I’ve been using Bacon without any problems after I commented out

# e.backtrace.find\_all { |line| line !~

/bin/bacon|/bacon.rb:\d+/ }.

# each\_with\_index { |line, i|

# ErrorLog \<\< "\t#{line}#{i==0 ? ": #@name -

#{description}" : “”}\n"

# }

> **[GitHub - leahneukirchen/bacon: a small RSpec clone](https://github.com/leahneukirchen/bacon/tree/master)**
>
> master

I got RSpec to work after following somebody else’s instructions on  
this list, but it was too slow to be useful.

I wrote a very basic “simple\_autotest” script to run “rake spec”  
whenever a source file is saved.

Thanks,  
Jeff
