From: Daniel Carrera [mailto:dcarrera@math.umd.edu]
I’m trying to figure out how to ust Test::Unit. I’ve read the
documentation in:
http://testunit.talbott.ws/doc/index.html
But I’m no closer to understanding it than I was before. At
the end of
the page, the author says that (s)he’d like to get some
feedback. Whoever
the author might be, here is some feedback:
- Include your name and email so that it’s easier to send
you feedback.
Eh? I’m guessing you got testunit off the RAA, in which case you would have
seen that Nathaniel Talbott is the author. His name and email address are
also in the README file. It’s ALSO in the index.html file, under “Contact
Information”.
- Could you include an example of how I’d use Test::Unit?
class TC_Foo < Test::Unit::TestCase
def setup
@f = Foo.new
end
def test_bar
assert_equal(“bar”,@f.bar,“Bad result for ‘bar()’”)
end
def teardown
@f = nil
end
end
There are also some examples in the “examples” directory.
Regards,
Dan
···
-----Original Message-----
- Include your name and email so that it’s easier to send
you feedback.
Eh? I’m guessing you got testunit off the RAA, in which case you would have
seen that Nathaniel Talbott is the author. His name and email address are
also in the README file. It’s ALSO in the index.html file, under “Contact
Information”.
No. As I said in my email, I was looking at:
http://testunit.talbott.ws/doc/index.html
Now that you mention it, I could have tried RAA. But my suggestion of
including a name and email in the documentation above is still good.
class TC_Foo < Test::Unit::TestCase
[snip]
def test_bar
assert_equal(“bar”,@f.bar,“Bad result for ‘bar()’”)
end
[snip]
end
Does that mean that it’s only possible to test the output of public
methods?
···
On Tue, Feb 18, 2003 at 07:03:55AM +0900, Berger, Daniel wrote:
–
Daniel Carrera
Graduate Teaching Assistant. Math Dept.
University of Maryland. (301) 405-5137
There’s a thread on this started by Mauricio Fernandez that started
around February 12 and is titled “Unit Testing Private Methods”. Enjoy!
···
On Monday, February 17, 2003, at 05:11 PM, Daniel Carrera wrote:
[snip]
Does that mean that it’s only possible to test the output of public
methods?
[snip]
Clearly the page is different when you look at it than when I do. When I
look at the page with that URL, there is a header called “Contact
Information” that includes the email address: testunit@talbott.ws.
I’m using Galeon 1.2.5, if that makes any difference.
···
On Tue, 18 Feb 2003 07:11:38 +0900, Daniel Carrera wrote:
On Tue, Feb 18, 2003 at 07:03:55AM +0900, Berger, Daniel wrote:
- Include your name and email so that it’s easier to send you
feedback.
Eh? I’m guessing you got testunit off the RAA, in which case you would
have seen that Nathaniel Talbott is the author. His name and email
address are also in the README file. It’s ALSO in the index.html file,
under “Contact Information”.
No. As I said in my email, I was looking at:
http://testunit.talbott.ws/doc/index.html
Now that you mention it, I could have tried RAA. But my suggestion of
including a name and email in the documentation above is still good.