Skip to content

Enhance Spec Dependency on Factory Structure/Authentication Status #43

@jacobdaddario

Description

@jacobdaddario

Hey team. I spoke with @rferg and @JeffLuckett about this last week, and @rcbm asked me to make an issue about this subject in the ActiveForce repository. I'm placing this here for that reason, but if you'd like this moved elsewhere, let me know and I'll put this somewhere else.

Is your feature request related to a problem? Please describe.
The approach to using VCR in order to test specs that use AF was a clever and pragmatic solution to the tough problem of relying on API access for persistence. That said, it has shown to have to problems:

  1. Many VCR cassettes have now become coupled to the structure of factories. Now when factories are modified, large numbers of VCR cassettes will be modified.
  2. VCR cassettes are now coupled to the auth status of the machine recording the cassette.

Describe the solution you'd like
My hope is that we can find solutions to these problems so that we don't risk constantly having to re-record large numbers of sometimes fragile VCR recordings when the cassettes are changed by the two causes above.

Describe alternatives you've considered

  1. Force local spec runs to force authorization at boot time of the test suite.
  2. Mocking SF requests that are simple in nature using conventional mocking techniques rather than via webmocks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions