N
N
Nike02014-03-06 16:30:18
Ruby on Rails
Nike0, 2014-03-06 16:30:18

How not to display unnecessary information in the terminal during ptest?

Good afternoon.
When running tests with the rake ptest command, it prints a lot of unnecessary information about the progress of the work to the terminal.
For example:

40/1171: 40/1.1k, 3%, 0.9/s, elapsed: 00:00:31, ETA: 00:19:58
41/1171: 41/1.1k, 3%, 0.9/s, elapsed: 00:00:32, ETA: 00:19:57
42/1171: 42/1.1k, 3%, 0.9/s, elapsed: 00:00:32, ETA: 00:19:56
43/1171: 43/1.1k, 3%, 0.9/s, elapsed: 00:00:32, ETA: 00:19:55
44/1171: 44/1.1k, 3%, 0.9/s, elapsed: 00:00:32, ETA: 00:19:54
45/1171: 45/1.1k, 3%, 0.9/s, elapsed: 00:00:32, ETA: 00:19:53
46/1171: 46/1.1k, 3%, 0.9/s, elapsed: 00:00:32, ETA: 00:19:52

Is there any solution to ensure that only messages about failed tests go to the output, because additional information does not carry any semantic load?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2014-03-06
@Nike0

command 1>/dev/null
1st stream is STDOUT
2nd (which will remain) - STDERR
If the application is written correctly, then by hiding the 1st stream in the above way, you will get rid of all messages that are not errors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question