Odd unit test error

K

Kenneth McDonald

On one of my unit test errors, I'm getting the error message:

NameError: uncaught throw 'invalid_test'

It's the part about "uncaught throw 'invalid_test'" that I don't get.
That sounds like an error from the unit test framework itself. Can
anyone shed any light on what this means?

Thanks,
Ken
 
B

Brian Candler

Kenneth said:
On one of my unit test errors, I'm getting the error message:

NameError: uncaught throw 'invalid_test'

It's the part about "uncaught throw 'invalid_test'" that I don't get.
That sounds like an error from the unit test framework itself. Can
anyone shed any light on what this means?

Can you post the whole backtrace? And what code causes this error?

The only instance of it I can see in the source is test/unit/testcase.rb
line 43, which looks like either you're trying to invoke a test which
doesn't exist, or you're invoking a test with invalid arity like

def test_foo(x)
...
end

But normally the framework would never try to invoke such a method
anyway, so it's strange.

You could try running with ruby -w, might give you some more clues.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,130
Latest member
MitchellTe
Top