Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs that provide a general approach to testing prologue #205

Open
PhilippMDoerner opened this issue Dec 3, 2022 · 0 comments
Open

Comments

@PhilippMDoerner
Copy link
Contributor

PhilippMDoerner commented Dec 3, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant