In-memory SQS For Unit Testing

Elliot Chance
1 min readDec 11, 2019
Photo by Levi Jones on Unsplash

If you need an in-memory, functional SQS client during unit tests you can now use github.com/elliotchance/mocksqs.

Getting Started

The simplest way to create a new SQS service is with mocksqs.New(). However, if you need queues prepopulated you can use mocksqs.NewWithQueues():

--

--

Elliot Chance

I’m a data nerd and TDD enthusiast originally from Sydney. Currently working for Uber in New York. My thoughts here are my own. 🤓 elliotchance@gmail.com