-
Notifications
You must be signed in to change notification settings - Fork 285
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
integrate test suite #263
integrate test suite #263
Conversation
That's a bit sad, the geocoders tools are made so we can factorize the efforts in maintaining tools around geocoders them-selves. |
The problem is the sad state of python (why is python2 still around and not compatible with python3!?): I couldn't get python3 working as I need python2 for some other stuff here and a coexistence was above my linux foo. I can comment in the other repo if this helps. Also I do think that we could share the data files and use different code to check this. For me as a Java dev I like having the different tests in my IDE and see kind of a summary and I also like that we could execute this on travis or somewhere else without much hassle. |
It's a matter of using virtualenvs. :)
Yes, please. I can provide a complete recipe for non python devs. |
That was what I tried but couldn't get it working faster then writing some small Java code (which I also could slightly adapt to benchmark the GH API that currently has a custom JSON format). |
See http://docs.python-guide.org/en/latest/dev/virtualenvs/ I can also setup a Docker image if that helps.
The first bits are always small and easy to setup. ;) As you known, the FLOSS hard bit is maintaining in the long term. :) |
I know. But it is obvious that for others the test suite wasn't as accessible as it should be and so too much decoupling is also a risc :). So we should improve this, and as the test data is really the important bit here maybe we can download this on the fly and have it "directly integrated". |
Another problem is if we wanted to run this regularly. Then we need to find a way to ignore certain failures but not all. Problem is mentioned in more detail here geocoders/geocoder-tester#20 |
Will try to avoid duplicating this here and enhancing the geocoder-tester |
This PR fixes #23 still some minor todos - see below.
The test suite was taken from https://github.com/geocoders/geocoder-tester but using a simple java class to execute the tests to avoid setting up separate tooling. Most of the test cases that ran before already run and I was able to compare the current PR #254 with master:
So the quality of the new PR is really comparable, only in France or some things to improve. The performance comparison is a bit unfair as I've done photon vs. some other setup but some smaller tests with the same setup still indicate a fair speed up.
TODOs: