peake100 / rogerRabbit-go

wrapper & drop-in replacement for streadway/ampq with automatic reconnects
MIT License
25 stars 3 forks source link

Testing: Test all Official Tutorials #51

Open peake100 opened 3 years ago

peake100 commented 3 years ago

We should add tests that match all of the official tutorials. In addition to being a good baseline to ensure correctness, it will also make sure that we avoid the embarrassment of someone trying out our lib by following along with the tutorials running into a bug.

Likely we should use a testing suite, with each method running one of the tutorials and resetting the test connection between.

We should also put this in it's own sub-package as it will likely involve quite a bit of code. Tutorials may also need to be modified so they exit after some sort of condition.