Unit Testing
fairingrey opened this issue · 0 comments
fairingrey commented
AFAIK there isn't any idiomatic way I know of to do unit testing in an actix-web application, as that would involve having to mock client messages on valid data, and given handlers are async ('technically' speaking, as the db actor is still sync) this might prove to be a bit difficult...
If anyone has suggestions or ways to approach this issue, feel free to make a comment or open a PR. Otherwise I'll try looking around and see what other people are doing before I attempt to make a test suite myself.