Getting test method names when getting output

H

Hunt Jon

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?
 
D

Daniel Berger

Hunt said:
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
 
P

Phlip

Hunt said:
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.
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top