vd
1 week ago
1082
2
Testing

Testing process in Laravel application development

Posted 1 week ago by vd

I'm following TDD technique in my new project. Thus I have a set of tests which cover my controllers, model classes, services, etc. Most of these tests are HTTP test, so I stored them in the /tests/Feature directory. Additionally I have few unit tests, which cover quite specific methods, which are not (easily) reachable from the HTTP tests.

If I understand correctly, each HTTP test is a functional tests, because it covers a lot of classes included Controller. Should I in that situation separately create unit tests for each method in my project even if it is already covered by HTTP tests? If yes, what benefit can I take from it.

Thank you in advance for explanations.

Please sign in or create an account to participate in this conversation.