Teddy
Teddy
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
146 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
146 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
146 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 😄
146 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
146 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
see, you're a pro already
146 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
146 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
146 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
146 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
146 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
146 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
146 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
146 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
146 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
146 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
146 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
146 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
146 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
i mean you could, it'll just take forever and debugging will be a nightmare
146 replies
CC#
Created by Mango on 1/23/2025 in #help
How do I write integration tests
it'll run a lot faster if you run it locally
146 replies