Skip to content

Sofar backend should directly support integration tests with mock test resources #11

@evanShap

Description

@evanShap

Currently, developers must manually modify test code to reference a particular Spotter and expectations. Sofar should expose mock resources via testing API token(s) with known responses. The benefits would be:

  • Can run tests without modifying test code and referencing bespoke resources =>
    • Can repeat test results between devs
    • Enables automated CI/CD
  • Can increase specificity of integration test expectations. Currently the expectations are fairly generic, asserting a field exists, or a response does not err. With fixed and known data responses, we could enforce schema expectations, performance guardrails, regression protection against backend changes, etc.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions