-
Notifications
You must be signed in to change notification settings - Fork 15
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
How to run e2e tests #135
Comments
Hey @mattlindsey, there is no documentation for this right now, but let me jot down a few notes off the top of my head, and once they work for you I'll turn it into documentation. For context, the e2e specs aren't like other RSpec tests in that they just make HTTP calls to Archyve's APIs. They are making HTTP calls and asserting that the response code, body, headers, etc. are what is expected. Sometimes they also then go back to the Archyve API to check that a side effect of the HTTP call was carried out correctly; for example, after hitting So, to run them:
Keep in mind that the tests are just making HTTP requests, and aren't aware of the internal workings of Archyve. So if you have a test fail saying it got a 500 back, that means Archyve returned a 500 to the spec, not that Archyve got a 500 from Ollama or ChromaDB. LMK how it goes! |
@oxaronick Those instructions worked pretty well. In step 4 I assume I did get 4 failures, usually getting
One of them:
|
That's good for a first run! The version test failure is likely because Archyve gets its version from a hit tag and you don't have any of those in your clone. You can run For the others, when the tests get a 500 you will see some errors in your The active server is actually something that you can see on the Settings page. There is an "active" column in the server list. If you only have one server you don't need to worry about that. Thanks for the feedback! |
Are there instructions or hints on how to get the e2e tests to run locally. I'm on a Mac and all 50 tests fail like this:
The text was updated successfully, but these errors were encountered: