-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Figure out an online testing strategy #306
Comments
Perhaps Mock Servers could be an option here! From the experience with JVM projects I can definitely recommend tools like WireMock and TestContainers, but eventually we can go simple for Rust and use httpmock.rs to mock what we need from Github API. A couple of things to consider for this solution: Could be better
Looks great
Wdyt? |
I like this idea! However, I don't think we should start there: IMO we do need some real full-online integration tests as an end-to-end matter, since mocking is always an approximation of program behavior. IMO we should start here with some actually-online tests, and then evaluate |
Our online audits need/deserve snapshot/acceptance tests too! These should always run in CI, and should be optionally runnable by local users who are willing to set
GH_TOKEN
or similar in their environment.One idea: we could mark online tests with
#[ignore]
, and then run all non-ignored tests in CI.Another idea: we could define an
online_tests
feature and do something like#[cfg_attr(not(feature = "online_tests"), ignore)]
on each test.Not sure if either of these is good/best practice, though.
The text was updated successfully, but these errors were encountered: