-
Notifications
You must be signed in to change notification settings - Fork 156
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
Tests no longer pass #383
Comments
I am working on this on branch |
Hello, thanks for the report. Indeed, the code changed a lot, and tests were kind of left behind. Some probably won't be easy to fix - IIRC some were running Elixir as a CGI script, but it's longer that straightforward, because Elixir was moved to WSGI (this can be worked around with some wrappers). I was planning to replace the current test code at some point in the future. If you are able to fix it easily then that's good, but I'm not sure how much can be updated without too much hassle. |
@fstachura said it all! I'll add the main reason we left the tests behind: neither @fstachura nor me know how to read a single line of Perl. In the long-term, we envisioned going to Python for testing:
We appreciate the effort though, thanks! It might not be an easy thing, how big do you expect the changes to be? |
Well, even independent of the Perl tests, the existing Python tests don't pass either :) . But, yes, if you think it's best for the project to rework the tests, I certainly won't argue with you! However, if it were up to me (which it's not), I would get the existing tests running first to guard against regressions and loss of coverage. Edit I got t/200 working |
Also, the query.py sample in the README doesn't work for me on latest $ ./elixir/query.py v4.10 ident raw_spin_unlock_irq C
Traceback (most recent call last):
File "./elixir/query.py", line 21, in <module>
from .lib import script, scriptLines, decode
ImportError: attempted relative import with no known parent package (this causes all the query.py tests to fail) |
Try replacing |
I would agree. But pragmatism tells me that taking 2 days to fix tests is less time efficient than taking 30 minutes here and there to fix the odd bugs that get reported (often internally & quickly as we are big users of Elixir). Anyway, tests would bring peace of mind during deployments, so could be beneficial. They just shouldn't take too long to write and run. |
Steps:
prove
Expected:
Observed:
It looks like the tests have not been kept up to date with code changes, e.g., 9e18f26.
The text was updated successfully, but these errors were encountered: