Skip to content

Update wiki on testing operations #7

Answered by adiachenko
apepindev asked this question in Q&A
Discussion options

You must be logged in to vote

I doubt lucid itself warrants some special conventions or gotchas in terms of testing. It's a general purpose question.

Personally, I usually don't think of a unit testing in context of isolation because from my experience it hurts the quality of your tests. You start mocking dependencies because you set out to write a "unit" test and soon enough your test suite becomes a glorified spell checker. It's also hard to do TDD in this way because mocking breaks a simple arrange->act->assert logic that makes it click.

If we were to follow a classic Laravel distinction between Feature and Unit tests (talking about default test folders) it's simpler to think of it in the following way. Feature tes…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Mulkave
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #7 on December 10, 2020 21:34.