Teddy
Teddy
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
// TODO: Handle empty pipeline - Bob 01/01/2013
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
so long as there's an interface it shouldn't be an issue?
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
I usually just instantiate it myself providing all of the mocks
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
2 options, register the mocked services through DI and then the new client will just grab the mocked ones automatically, or just instantiate the client with you providing the mocked versions yourself
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
at least once it's done you can just write actual tests from there forward
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
but then they need help and the senior ends up doing all of the work anyway 😄
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
this is why tests often get delegated to the interns/juniors
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
see, you're a pro already
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
it can be yeah, depending on how complex your service chain is
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
you can bring in your implementations whenever applicable though
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
ah, yes, this answers the previous question I somehow missed the ping on
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
they need to take some ownership of the code back from the offshore
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
this is a good example of outsourcing gone too far though and the negative consequences from it
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
because like me and @Pope said, you're adding a lot of latency to the tests, so if you want to automate them (include in your CI/CD) it'll slow things down substantially, you also can't just set breakpoints in the API to help debug since it's running somewhere remotely
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
make sure the API you're calling isn't connected to a prod DB
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
not that I think it's the best approach, but it's somewhere to start
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
but really they should be the ones doing it
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
yeah, so really you're regression testing someone else's API
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
anyway @Mango you can start by adding a reference to the client/UI in your xunit project, then make use of its client to make API calls and assert on the responses
157 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
I guess it's more of a 3rd party regression testing
157 replies