Skip to content
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

Add acceptance tests for Esteli, Nicaragua #136

Merged
merged 1 commit into from
Sep 7, 2018
Merged

Add acceptance tests for Esteli, Nicaragua #136

merged 1 commit into from
Sep 7, 2018

Conversation

pantierra
Copy link
Contributor

@pantierra pantierra commented Mar 5, 2018

This PR is based on #134. It introduces a non-regression, acceptance tests for the Esteli provider. A review of at least one the owners of the creator (@ialokim and @AltNico) is highly appreciated and a precondition to get this merged in.

@ialokim
Copy link
Contributor

ialokim commented Mar 5, 2018

Not sure if I'm wrong, but isn't this testing exactly the same (standard) creator as the already accepted PR #131 ?

Instead of adding the same test for each one of the creators which use the standard creator's approach, wouldn't it be more straightforward and simple to only add a unit test for the standard creator once?

Of course it's important to add unit test for all creators that don't use the standard creator such as #137 and #135.

@pantierra
Copy link
Contributor Author

Good point! I don't have a strong opinion (yet). We could just have one test for a provider using the standard creators, or a test for each provider, and it doesn't matter, if it uses a custom or a standard creator. I see advantages and disadvantages for both approaches. Having tests for all, assures a bit more test coverage (as providers can still be different even when using the standard creators), but it is clearly adding up time to the tests to run.

@pantierra
Copy link
Contributor Author

Having an own test also allows providers to extend the class for particular tests. At the end, the more I think about it, the more I opt for having tests for each provider.

@pantierra
Copy link
Contributor Author

#129 is another use case where separate tests would be useful, wouldn't it?

@pantierra
Copy link
Contributor Author

Updated based on latest upstream. Now this PR only includes the respective commit and is easier to review, for your convenience.

@pantierra pantierra mentioned this pull request Apr 3, 2018
@pantierra pantierra changed the title Add acceptance tests for Esteli, Nicaragua Add acceptance tests for Esteli, Nicaragua Apr 4, 2018
@pantierra
Copy link
Contributor Author

Rebased on latest master.

@grote
Copy link
Owner

grote commented Aug 12, 2018

This is awaiting review from @AltNico it seems.

Copy link
Collaborator

@AltNico AltNico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed the changes but did not test the code locally. Thank you for that tests, @xamanu, especially for the Overpass magic in queries.txt which I feel like I will never be able to do on my own... Highly appreciated!

@grote grote merged commit 3a2ac2d into grote:master Sep 7, 2018
@grote
Copy link
Owner

grote commented Sep 7, 2018

Thanks @xamanu and @AltNico !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants