prologue icon indicating copy to clipboard operation
prologue copied to clipboard

Add docs that provide a general approach to testing prologue

Open PhilippMDoerner opened this issue 1 year ago • 0 comments

Given that I'm currently working my way through how to do this with snorlogue and started stealing a lot of ideas from how you did it in the end in prologue, I thought we might as well have docs for it. I'll write them up when I can find the time, for now I want to get Snorlogue finally releasable and out the door.

The general idea would be to do it exactly as we did: Define the server in a separate file, compile it with a command, run it via the osproc module in its own process and poll it till you can interact with it. Combine that with a tiny example to call an endpoint on it and you're left with at the very least a way to do integration tests.

PhilippMDoerner avatar Dec 03 '22 23:12 PhilippMDoerner