# Help running IronRuby tests

**URL:** <https://www.ruby-forum.com/t/help-running-ironruby-tests/116151>\
**Category:** IronRuby\
**Created:** [October 2, 2007, 11:21pm UTC](https://www.ruby-forum.com/t/help-running-ironruby-tests/116151 "2007-10-02T23:21:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtphysguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Post date:** [October 2, 2007, 11:21pm UTC](https://www.ruby-forum.com/t/help-running-ironruby-tests/116151/1 "2007-10-02T23:21:37Z")

</div>

I’d like to know how to run the unit tests, so I can check if my change  
broke anything. The test harness is a little weird, in that it wants a  
bunch  
of strange environment variables and paths. For example, trying “ruby  
run.rb”  
in tests\ironruby gives:

tests/ironruby/common.rb:25: undefined method `+' for nil:NilClass (NoMethodError) from run.rb:5:in`require’  
from run.rb:5

The stack trace points to this code in common.rb:

```
MERLIN_ROOT = get_environment_variable('MERLIN_ROOT')
TEST_DIR = MERLIN_ROOT + "/Languages/Ruby/Tests"
CORECLR_ROOT = MERLIN_ROOT + "/Utilities/Silverlight/x86ret"
ROWAN_BIN = get_environment_variable('ROWAN_BIN')

```

Where the “TEST\_DIR” assignment fails. Anyone know a simple way to get  
the  
test harness running? I’d be glad to test any instructions 🙂

Justin

---

<div class="post-metadata">

**Author:** ![vtphysguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Post date:** [October 2, 2007, 11:29pm UTC](https://www.ruby-forum.com/t/help-running-ironruby-tests/116151/2 "2007-10-02T23:29:49Z")

</div>

Haibo on my team is working on a fix for this. We should have something  
for you by end of day tomorrow.

Thanks,  
-John

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Justin B.  
Sent: Tuesday, October 02, 2007 2:21 PM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] Help running IronRuby tests

I’d like to know how to run the unit tests, so I can check if my change  
broke anything. The test harness is a little weird, in that it wants a  
bunch of strange environment variables and paths. For example, trying  
“ruby run.rb” in tests\ironruby gives:

tests/ironruby/common.rb:25: undefined method `+' for nil:NilClass (NoMethodError) from run.rb:5:in `require’  
from run.rb:5

The stack trace points to this code in common.rb:

```
MERLIN_ROOT = get_environment_variable('MERLIN_ROOT')
TEST_DIR = MERLIN_ROOT + "/Languages/Ruby/Tests"
CORECLR_ROOT = MERLIN_ROOT + "/Utilities/Silverlight/x86ret"
ROWAN_BIN = get_environment_variable('ROWAN_BIN')

```

Where the “TEST\_DIR” assignment fails. Anyone know a simple way to get  
the test harness running? I’d be glad to test any instructions 🙂

Justin
