-
Notifications
You must be signed in to change notification settings - Fork 22
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
Test for duplicates #44
Comments
Here is a proposal about this:
We are not really satisfied with this solution, because
Any better idea in how to handle this ? |
I created a PR on our fork to handle this: The idea is to add an option to check the duplicates: This will run geocoder tester as always, and for each query, after the tests on the expected fields, we'll check that no objects in the response are duplicates. The notion of a duplicate is something that the user can't differentiate, so we implemented something quite specific for qwant's display of the autocomplete's response:
For the moment this mechanism is quite hardcoded in So this will add more test errors and the responses are formated like:
would anyone be interested for this ? should I also make a PR on the central repository with this ? |
When you use your geocoder to perform autocomplete search, you don't want the results to include duplicates, because they are confusing for the user which will not know how to choose between them.
How can we use geocoder-tester to test that we don't have duplicate results ?
The text was updated successfully, but these errors were encountered: