Skip to content

Spoke perf testing framework: end-to-end message sending test case #277

Open
@mathemagica

Description

@mathemagica

Context: we need a way to simulate having many texters on spoke at the same time so we can measure how well the system performs at scale without undue risk of prod breakage. Goal of these perf testing tasks is not to load test the entire system end-to-end, but be able to load test just the parts of the code we change, so that we can have some sense ahead of time whether code changes we're about to roll out will causing scaling issues.

Using test/backend.test.js as an example of how to mock out the current logged in user, and https://github.com/MoveOnOrg/Spoke/blob/master/src/server/api/schema.js#L323 as an example of how to mock twilio interaction, write a test that mock logs in as a user, sends a configurable number of mocked text messages associated with a mocked campaign, and responds to mocked replies.

Document how to run this test on a locally run server using your local postgres database, and also pointing at the staging postgres database.

Metadata

Metadata

Assignees

Labels

A-scalingArea: Considerations around scaling spokeA-testingArea: a test, testing coverage, meta discussions about testingNov 16 - CandidateThis issue was created on 2018 or older and being checked to see if it can be closed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions