#mighty-adin_best-practices

1 messages ยท Page 1 of 1 (latest)

light ginkgoBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1344068332067880980

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

quasi sluice
#

I have found mention of the VCR gem as a tool for recording/replaying flows against the Stripe API. My concern is that it would create a brittle mocking resource, and any randomized strings (eg uuids) would need special handling, and any change to our product would require re-recording thet "Cassette" all the time

deft crystal
#

Hi! We don't really have a lot for integration testing, and stripe-mock is meant more for unit testing.

#

Some folks do use test mode, but it's less than ideal, since you're effectively testing Stripe at that point rather than your application.

quasi sluice
#

Yeah, the lack of a solution is apparent. But my assumption is that other companies have found ways to work around this limitation. We just want to align with industry standards

#

We're weighing the option of hitting the real API in Test Mode for a limited set of tests. But that obviously won't scale, and introduces an external dependency

#

you're effectively testing Stripe at that point rather than your application.

Also this

deft crystal
#

I suspect generally they'll use their own mock setup specific to their test cases - it is definitely suboptimal to include Stripe in your test suite if you can help it.

#

Ya, we either work or don't but that's not something your test suite needs to handle. ๐Ÿคช

quasi sluice
#

My hope was that this Discord would be a place where I could get a crowd-sourced solution. But it seems like you're pretty aggressive about closing these threads, so I don't anticipate I'll get a chance to hear from other devs...

#

Like 'who out there is using VCR?' is not a question I can get answered it seems

deft crystal
#

Ya, it doesn't work like how IRC worked before - this is one thread per asker.

quasi sluice
#

So even if they arrived in time before the thread was closed, I'm the only non-moderator with permssions to reply in this thread?

deft crystal
#

Yes.

#

Well, no ๐Ÿ˜‚ but we will have the other person move on unless they're part of your organization and working on the same problem

quasi sluice
#

Okay, so I guess I'll need to go to stackoverflow or something to hear from other RoR devs

#

I appreciate you jumping in, but I'm not really getting what I was hoping to

deft crystal
#

I'm sorry to hear that. StackOverflow might be a good next step, ya.