-
Notifications
You must be signed in to change notification settings - Fork 376
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
Move Integration Tests to openrouteservice Module #1352
Conversation
@jlink @koebi One thing that just came up. Would it be possible to disable the debug logging of the integration tests in a normal run, maybe through an ENV variable? The output is just so cluttered and confusing, and usually not needed in a normal run. When an action fails, there is the option of re-executing an action in a debug session, which sets |
1ba96d9
to
c4011ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just a few minor comments.
openrouteservice/src/test/java/org/heigit/ors/apitests/centrality/CentralityErrorCodes.java
Outdated
Show resolved
Hide resolved
openrouteservice/src/test/java/org/heigit/ors/apitests/common/InitializeGraphsOnce.java
Outdated
Show resolved
Hide resolved
openrouteservice/src/test/java/org/heigit/ors/apitests/common/InitializeGraphsOnce.java
Outdated
Show resolved
Hide resolved
log config can be done in the ors.config.json right? |
or if -DCI=true is set
Since integrationtests live in the same module as the rest of the code, we can remove the duplicate AppConfig class.
All relevant files have been moved to src/test/apitests and the like
We're using spring-boot mechanism to run apitests with the correct context. We're not running them against the packaged jar or war file, so from the maven pov they aren't integration tests. This also enables us to run them with `mvn package`, using the `-Papitests` parameter.
With the API tests migration from a separate module to the openrouteservice package, this isn't necessary anymore.
This is still a hack but better than a static sleep
0aa16cb
to
12d215f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good.
Tasks
cleanup ors.run for failed builds
in maven-antrun-pluginPull Request Checklist
have been resolved.
[Unreleased] heading.
along with a short description of what it is for, and documented this in the Pull Request (below).
(at least Germany), and the graphs build without problems (i.e. no out-of-memory errors).
importer etc.), I have generated longer distance routes for the affected profiles with different options
(avoid features, max weight etc.) and compared these with the routes of the same parameters and start/end
points generated from the current live ORS.
If there are differences then the reasoning for these MUST be documented in the pull request.
and why the change was needed.
Closes #1349
Closes #1345
Information about the changes
Examples and reasons for differences between live ORS routes, and those generated from this pull request
Required changes to ors config (if applicable)