-
Notifications
You must be signed in to change notification settings - Fork 723
Tests do not run in master repo. #311
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
Comments
Hello @w-, Could you try the following: wget https://github.com/stoplightio/prism/releases/download/v2.0.0-alpha.3/prism_linux_amd64
mv ./prism_linux_amd64 /usr/local/bin/prism
rm ./prism_linux_amd64 Then run the tests. Thanks! |
@thinkingserious so the issue here was the unexpected requirement that prism needs to be installed @ /usr/local/bin/ which requires root privileges. If i'm running tests on a package I don't really expect to run them with root privs (which supposedly would allow the auto download and install of prism to that location) Eventually from looking at the test setup source and the prism docs, i completed what was required manually (ala your preceding comment). |
Thank you @w-, this was very valuable feedback as I did not test in Ubuntu. Where do you suggest we install prism? |
Far from being an ubuntu (or *nix) expert in general, I dont think i have good answers to this. My understanding is that it is common to install things in the user's home directory under .local/bin or some variant of that. The python code can then make a call relative to the user's home directory. Even the current location is ok, I think. There just needs to be additional documentation explaining prism is a dependency for running tests and how to install it. |
Fair enough :) The idea behind the script is that you should not need to know how to install it, it just happens for you. We did have documentation on Prism here, but I removed it when we automated the install. That said, I think you are correct, we should still document it. So I will leave this ticket open until I add that documentation. Thanks again for your help! |
np. thanks for being responsive. |
I would like to look at this as well, but I am not clear with weather we should fine a solution on how to install and use prism without sudo on Ubuntus, ot just document it as a prerequisite. |
Hi @meahow, This issue was to document this behavior. If you figure out how to get it installed and working on Ubuntu, I will bump the difficulty to medium on this issue. Thanks! With Best Regards, Elmer |
@meahow Are you thinking of fixing the install problem? I might have a crack at it if you decide not to. |
@gabrielkrell, The idea is to use test/prism.sh as a installer for prism (if it is not in the PATH yet) and document it on the CONTRIBUTING page. |
@meahow Sounds good! |
I have created PR #364 . |
Issue Summary
Tests do not run in master repo.
I notice if i do
I get
Steps to Reproduce
Technical details:
The text was updated successfully, but these errors were encountered: