[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Getting test method names when getting output

Hunt Jon

12/18/2008 1:50:00 PM

When I run a test file (e.g., ruby test_user.rb), I get the test
output about error and failure and about the overall number of tests,
assertions, pass and so on.

But I would like to see all the test method names including the test
that is passed.

Currently what I can see is a dot (.) indicating a pass.

Is there any way to get a list of tests inside a file?

2 Answers

Daniel Berger

12/18/2008 2:18:00 PM

0

Hunt Jon wrote:
> When I run a test file (e.g., ruby test_user.rb), I get the test
> output about error and failure and about the overall number of tests,
> assertions, pass and so on.
>
> But I would like to see all the test method names including the test
> that is passed.
>
> Currently what I can see is a dot (.) indicating a pass.
>
> Is there any way to get a list of tests inside a file?

gem install turn

Regards,

Dan


Phlip

12/18/2008 3:00:00 PM

0

Hunt Jon wrote:

> When I run a test file (e.g., ruby test_user.rb), I get the test
> output about error and failure and about the overall number of tests,
> assertions, pass and so on.
>
> But I would like to see all the test method names including the test
> that is passed.
>
> Currently what I can see is a dot (.) indicating a pass.
>
> Is there any way to get a list of tests inside a file?

Turn on verbose:

ruby user_test.rb -v

In terms of style, the _test suffix should not be a prefix, because otherwise
everything in your test folder starts with T, and that impairs your desktop
tools, such as command line tab completion.

--
Phlip