Skip to content

Is is possible to test & benchmark each component in a standalone way? #2326

Answered by Mytherin
JigaoLuo asked this question in Q&A
Discussion options

You must be logged in to vote

We avoid doing component-wise testing and benchmarking. First, it requires writing and maintaining lots of code, mocks, etc. that have no other purpose than testing and benchmarking. This huge extra set of code means changing anything later on becomes much more painful, since not only does the code have to be rewritten, the tests need to be rewritten as well. SQL is perfect for testing since there is a very specific contract (this query returns this result) that the system needs to handle anyway. Adding SQL tests does not cause any lock-in to current code, which means implementations are easy to change or swap around. Sometimes forcing specific code to be executed or tested is useful, but…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JigaoLuo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants