I
I
Ivan Antonov2016-03-04 17:03:46
symfony
Ivan Antonov, 2016-03-04 17:03:46

Does it make sense to cover the controller with tests?

If all the functionality is described in models and the models are completely covered by tests, does it make sense to also cover the controller with tests?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vesax, 2016-03-06
@antonowano

It makes sense to cover with functional tests, elementary for status 200 for example.

K
Karim Kyatlottyavi, 2016-03-04
@constXife

Yes, controllers also have code that needs to be covered by tests.

S
SMA2, 2016-03-05
@SMA2

Depends on the degree of your laziness, the degree of responsibility of the order and the amount of payment.

G
Grigory Esin, 2016-03-07
@xotey83

Yes, it has.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question