4 ms·
I’m genuinely curious what a unit test for something would look like.
by syntaxing 3y ago
I’m genuinely curious what a unit test for something would look like.
- jacquesm 3y agoChecksum on the resulting csv with a parallel implementation of the whole pipeline ;)
- syntaxing 3y agoI don’t work with large databases so pardon my ignorance. Is there typically a “unit test” bucket you run it on or do you just put in test entries on a production bucket?
- hightrix 3y agoWe tend to only test what is being tested. So, most DB calls are mocked in our unit tests. For stored procs or other tests that need to be run on a DB, we use a test DB that is setup to mirror production. I'd bet there are a 100 different answers to your question though. This is the way we handle it.
- jacquesm 3y agoNormally you'd fire up a separate environment, mock the process and see if it produces the expected results. By the time you put 'test entries in a production bucket' there are so many lines crossed that it likely won't end well even if the tests do pass.
- yonixw 3y ago// TODO
- ak39 3y agoLOL. What did this comment (no pun!) do for your HN karma points?
- tommek4077 3y agoThat is probably quite straight forward and of course they have 100% coverage.
- FartyMcFarter 3y agoThat would be an integration test, not a unit test.
- wredue 3y agoWe usually use very complicated UIPath flows to “test” these things. If that doesn’t exist yet (it usually doesn’t), we test manually, but only core workflows.