DEV Community

loading...

Discussion on: TDD course with AdonisJs - 7. Moderators

Collapse
dantewebmaster profile image
Dante J. Anjos

I`m a bit confused... when do I have to use unit or functional test?

Collapse
michi profile image
Michael Z Author

Hi,

unit tests literally only test a single unit (e.g. a method). They do not work directly with dependencies like database, filesystem, rest APIs etc.

Because adonis is a battery included framework and already comes with many features, we actually don't have to write too many unit tests, which is pretty neat.