No tests were specified

not sure why I am getting the following error when running the tests:

C:\Projects\FirstLookAtIronRuby\FirstLookAtIronRuby\TestSuite>ir
test_customer.r
b
Loaded suite test_customer
Started
F
Finished in 0.3125 seconds.

  1. Failure:
    default_test(Test_Customer)
    [c:/ironruby/ironruby/Merlin/Main/Languages/Ruby/libs/test/unit/testcase.rb:
    110:in default_test' c:/ironruby/ironruby/Merlin/Main/Languages/Ruby/libs/test/unit/testcase.rb: 79:inrun’
    C:\ironruby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Bu
    iltins\KernelOps.cs:1313:in send' C:\ironruby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Ex tensions\IListOps.cs:757:ineach’
    C:\ironruby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Ex
    tensions\IListOps.cs:757:in each' testrunner.rb:66:instart_mediator’]:
    No tests were specified.

1 tests, 1 assertions, 1 failures, 0 errors

Here is my test file:

require ‘test/unit’

class Test_Customer < Test::Unit::TestCase

def foo

assert_equal(1,1)

end

end

Mohammad A. wrote:

not sure why I am getting the following error when running the tests:
…error…
No tests were specified.

1 tests, 1 assertions, 1 failures, 0 errors

Here is my test file:

require ‘test/unit’

class Test_Customer < Test::Unit::TestCase

def foo

assert_equal(1,1)

end

end

I believe test methods need to start with test_
Try renaming “foo” to “test_foo”

Thanks that did the trick!