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
Get some basic tests running #10
Conversation
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.
There's a few things I don't understand in this PR:
- It does a bunch of work to change
test_joy_twist.py
, but that test never actually gets run by the CMakeLists.txt. Should we make it run in there? - In my local testing, flake8 isn't happy with
test_joy_twist.py
; it is mostly complaining about import statements being in the wrong order and the use of double-quotes. I think we'll want to fix those before merging. - There are a bunch of changes to the copyright statement at the top of
test_joy_twist.py
, but then the copyright check is essentially disabled in CMakeLists.txt. Either we should make the code changes to make the copyright check pass (and re-enable the test), or we should just disable that test (and thus we don't need the changes to the copyright). I'd prefer the former if we can make it happen, but the latter is acceptable as well.
Signed-off-by: Scott K Logan <logans@cottsay.net>
Thanks for taking a look, Chris.
|
Ah, I see. The major thing wrong with that test as it stands is that it does not use the launch_testing infrastructure. In order for this test to work, it would need to bring that stuff in and then launch the unittest alongside an invocation of teleop_twist_joy. One other thing to keep in mind if you go looking at this is that the "axes" field of the message must have the dead-man button enabled (button 5 by default), otherwise nothing will come out of teleop_twist_joy. Once you have those things in place, I think this test would actually work.
This is mostly fixed, though my flake8 was still complaining about the order of includes; basically "time" and "unittest" need to be before everything else.
All right, makes sense. I'm fine with that change to make flake happy. I agree about adding the copyrights to ROS 1, but it honestly isn't that urgent. |
Signed-off-by: Scott K Logan <logans@cottsay.net>
Two tests are disabled while we decided how to handle the difference in behavior. Signed-off-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
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.
I made one small change, in that I removed the shebang from test_joy_twist.py; it's always imported and used, never run directly. Other than that, it looks good to me so I'll merge this. Thanks for iterating.
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
No description provided.