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

Issue #1235: improve transmission tests #1238

Merged

Conversation

taDachs
Copy link
Contributor

@taDachs taDachs commented Dec 19, 2023

This PR replaces EXPECT_EQ with EXPECT_THAT(..., DoubleNear(...)) for floats, as well as relaxes the used EPS from 1e-6 to 1e-5 as mentioned in #1235 . I also replaced the EXPECT_NEAR the same way for consistency. I skipped test_transmission_parser.cpp as I doesn't seem to be build, but I can adapt it in the same way if wanted.

Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0a3705f) 47.82% compared to head (73e6658) 47.82%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1238   +/-   ##
=======================================
  Coverage   47.82%   47.82%           
=======================================
  Files          40       40           
  Lines        3448     3448           
  Branches     1869     1869           
=======================================
  Hits         1649     1649           
+ Misses        456      455    -1     
- Partials     1343     1344    +1     
Flag Coverage Δ
unittests 47.82% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

@taDachs taDachs force-pushed the issue-1235-improve-transmission-tests branch from b8af0a1 to 73e6658 Compare December 20, 2023 18:39
@taDachs
Copy link
Contributor Author

taDachs commented Dec 20, 2023

I don't really understand why the binary/rolling workflow failed, but it seems like it doesn't directly relate to my code changes?

Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

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

Wow you had a lot of work to do on this one! Thank you!

@bmagyar
Copy link
Member

bmagyar commented Dec 20, 2023

That failure has nothing to do with your changes. It failed for a similar reason this PR exists, test instability! ;)

@bmagyar bmagyar merged commit e92b6c2 into ros-controls:master Dec 20, 2023
13 checks passed
@bmagyar bmagyar added backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble. backport-iron This label should be used by maintaines only! Label triggers PR backport to ROS2 Iron. labels Dec 20, 2023
mergify bot pushed a commit that referenced this pull request Dec 20, 2023
* [transmission_interface] relaxes float tolerance in tests

* [transmission_interface] replaces EXPECT_EQ for floats with EXPECT_THAT(..., DoubleNear(...))

(cherry picked from commit e92b6c2)
mergify bot pushed a commit that referenced this pull request Dec 20, 2023
* [transmission_interface] relaxes float tolerance in tests

* [transmission_interface] replaces EXPECT_EQ for floats with EXPECT_THAT(..., DoubleNear(...))

(cherry picked from commit e92b6c2)
@christophfroehlich christophfroehlich linked an issue Dec 22, 2023 that may be closed by this pull request
8 tasks
bmagyar pushed a commit that referenced this pull request Dec 22, 2023
bmagyar pushed a commit that referenced this pull request Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble. backport-iron This label should be used by maintaines only! Label triggers PR backport to ROS2 Iron.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve robustness of transmission tests
2 participants