zinc-collective / compensated

Create value. Get Paid.
Other
13 stars 1 forks source link

Client developer may use packaged fixtures when integrating Compensated #68

Open jalcine opened 4 years ago

jalcine commented 4 years ago

Currently, the core compensated library holds a lot of useful code around the fixtures for testing responses from Stripe and Apple Pay. Moving them into a separate library (ideally compensated-spec) will allow any other Compensated gem to use them and share changes upstream. This can be also be used by other projects that want to test how Compensated responds to particular events.

Feature Definition

Feature: Spec Fixtures
  In order to more easily test how payment processor events will impact my system
  As a Client Developer
  I want to be able to apply payment gateway event fixtures in my automated test suite

This Issue May Be Closed When

zspencer commented 4 years ago

@jalcine - nice! I've updated the issue body to add some acceptance criteria and sprout a feature definition.

I think this is a pretty big chunk of work (likely exceeding our "4 hour timebox") so I've added the epic label.

As a thank you for taking the time to put this issue together, I've transferred you 20 points from my personal patronage account balance. These points are worthless for now, but may be redeemed for a share of the profits generated by Zinc (you know, once we have them :)).

zspencer commented 4 years ago

@jalcine - Do you think this is kind of where you want this to be headed: https://github.com/zinc-collective/compensated/pull/72

The goal here is to make it possible for you to generate events from any of the payment processors we support and throw them at a compensated-proxy or a ruby project that is using the compensated gem so you can programmatically test scenarios without having to assemble the fixtures yourself.

Thoughts?

jalcine commented 4 years ago

@jalcine - Do you think this is kind of where you want this to be headed: #72

The goal here is to make it possible for you to generate events from any of the payment processors we support and throw them at a compensated-proxy or a ruby project that is using the compensated gem so you can programmatically test scenarios without having to assemble the fixtures yourself.

This satisfies the needs I'll have when wanting to incorporate Compensated!