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

Fix tests on Blueprint #295

Merged
merged 1 commit into from
Aug 15, 2020
Merged

Fix tests on Blueprint #295

merged 1 commit into from
Aug 15, 2020

Conversation

chapulina
Copy link
Contributor

We let some test failures slip in after #274. In particular, the support for finding worlds with the IGN_GAZEBO_RESOURCE_PATH was broken (ServerFixture.ResourcePath).

So here I moved the logic that finds worlds all to the same place inside Server. Having this search done as the server is instantiated also makes sure that all paths and callbacks needed have already been set. Searching for resources inside ServerConfig.SetSdfPath offers us less control about when that is checked, and kept it separate from the rest of the world finding logic.

Signed-off-by: Louise Poubel <[email protected]>
@chapulina chapulina added bug Something isn't working tests Broken or missing tests / testing infra labels Aug 15, 2020
@chapulina chapulina requested a review from JShep1 August 15, 2020 00:46
@github-actions github-actions bot added the 📜 blueprint Ignition Blueprint label Aug 15, 2020
@codecov
Copy link

codecov bot commented Aug 15, 2020

Codecov Report

Merging #295 into ign-gazebo2 will increase coverage by 24.30%.
The diff coverage is 75.90%.

Impacted file tree graph

@@               Coverage Diff                @@
##           ign-gazebo2     #295       +/-   ##
================================================
+ Coverage        53.78%   78.09%   +24.30%     
================================================
  Files              121      183       +62     
  Lines             5838     9975     +4137     
================================================
+ Hits              3140     7790     +4650     
+ Misses            2698     2185      -513     
Impacted Files Coverage Δ
include/ignition/gazebo/Server.hh 100.00% <ø> (ø)
...nclude/ignition/gazebo/components/Serialization.hh 61.29% <0.00%> (+61.29%) ⬆️
src/ServerConfig.cc 95.26% <ø> (+11.57%) ⬆️
.../plugins/component_inspector/ComponentInspector.cc 9.41% <0.00%> (ø)
src/systems/breadcrumbs/Breadcrumbs.hh 100.00% <ø> (ø)
src/systems/diff_drive/DiffDrive.hh 100.00% <ø> (ø)
src/systems/joint_controller/JointController.hh 100.00% <ø> (ø)
...stems/joint_state_publisher/JointStatePublisher.hh 100.00% <ø> (ø)
src/systems/physics/Physics.cc 74.12% <ø> (+58.14%) ⬆️
src/systems/user_commands/UserCommands.hh 100.00% <ø> (ø)
... and 124 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fb1d7b5...8a92622. Read the comment docs.

Copy link

@JShep1 JShep1 left a comment

Choose a reason for hiding this comment

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

LGTM with tests passing, thanks for the quick fix! 😸

@JShep1 JShep1 merged commit 865e77d into ign-gazebo2 Aug 15, 2020
@JShep1 JShep1 deleted the chapulina/fix_world_test branch August 15, 2020 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📜 blueprint Ignition Blueprint bug Something isn't working tests Broken or missing tests / testing infra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants