-
Hi. Be more specific: There is a popular way to import |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 working around that by adding a PRAGMA is much easier than adding all the code, mocks, etc required for component-wise testing. "Keeping the noise of other components away" for benchmarking sounds good, but in practice it means you might be optimizing entirely irrelevant sections of code. For example, if you spend weeks optimizing a method (e.g. |
Beta Was this translation helpful? Give feedback.
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…