graphhopper-navigation icon indicating copy to clipboard operation
graphhopper-navigation copied to clipboard

How to test

Open boldtrn opened this issue 7 years ago • 3 comments

How do we make this repository testable?

Before we would start a webserver and send requests and look at the responses. Should we use a similar approach here? If yes, we need to be able to start a server in this repo, otherwise we might only test the MapboxResponseConverter, but then we still need to start a GH instance.

boldtrn avatar Aug 21 '18 09:08 boldtrn

If yes, we need to be able to start a server in this repo, otherwise we might only test the MapboxResponseConverter, but then we still need to start a GH instance

I see what you mean. It is probably not wrong to have it as a test dependency or with a separate maven module.

BTW: can we rename graphhopper-mapbox to graphhopper-navigation-mapbox? Although longer it better describes the package IMO.

karussell avatar Aug 21 '18 09:08 karussell

BTW: can we rename graphhopper-mapbox to graphhopper-navigation-mapbox? Although longer it better describes the package IMO.

Ok sure, I can do that :). My idea was to call the overall package graphhopper-navigation and add different modules for specific conversions, so graphhopper-mapbox is a module of graphhopper-navigation, but I agree, it would make more sense to rename it as well :).

boldtrn avatar Aug 21 '18 09:08 boldtrn

With #3 this should be mostly fixed. I still think we should somehow test the actual server execution to make sure that MapboxResource is tested as well, but at least we have an easy way to test the converter itself.

boldtrn avatar Aug 22 '18 10:08 boldtrn