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

MAVSDK testing improvements #14296

Merged
merged 51 commits into from Mar 18, 2020
Merged

MAVSDK testing improvements #14296

merged 51 commits into from Mar 18, 2020

Conversation

julianoes
Copy link
Contributor

@julianoes julianoes commented Mar 4, 2020

This includes MAVSDK testing improvements.

The changes include:

  • SITL tests defined in a JSON file.
  • less verbose output, no logs, unless an error happens
  • show test summary at the end
  • support verbose log output while still writing to log files
  • added colors to output
  • added cpp files to astyle check and added license header
  • properly exit on Ctrl+C
  • added type hints in Python script

And this is what it looks like now:

Selection_006

@julianoes julianoes force-pushed the pr-mavsdk-tests-improvements branch 2 times, most recently from 37423b7 to 5c8c922 Compare March 6, 2020 14:06
@LorenzMeier
Copy link
Member

Nice! What is needed to get this from WIP to ready for review?

@julianoes
Copy link
Contributor Author

@LorenzMeier The output is not like I want it yet. There should be minimal output unless something fails and if so, all the information is required to see what is going on.

@julianoes julianoes force-pushed the pr-mavsdk-tests-improvements branch 3 times, most recently from e9a39a1 to 07e9aa1 Compare March 17, 2020 14:54
@julianoes julianoes marked this pull request as ready for review March 17, 2020 14:54
@julianoes
Copy link
Contributor Author

@LorenzMeier ready for review and merging (given CI passes).

@julianoes julianoes force-pushed the pr-mavsdk-tests-improvements branch 3 times, most recently from 78e1c05 to d8defb6 Compare March 17, 2020 16:33
Copy link
Member

@LorenzMeier LorenzMeier left a comment

Choose a reason for hiding this comment

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

Nice structure, looks good to me. I have one question regarding the idle item.

src/modules/navigator/navigator_main.cpp Outdated Show resolved Hide resolved
@julianoes julianoes force-pushed the pr-mavsdk-tests-improvements branch from d8defb6 to 9e25910 Compare March 17, 2020 17:21
@julianoes
Copy link
Contributor Author

Merging depends on #14134.

Jaeyoung-Lim
Jaeyoung-Lim previously approved these changes Mar 18, 2020
Without the library installed, we can't build and run the tests.
Silently ignoring this just leads to confusion.
This is required because some tests don't work at more than 1x.
It doesn't actually seem to work.
We can put them back once it's supported.
@julianoes julianoes force-pushed the pr-mavsdk-tests-improvements branch from 202fae4 to 3aaa432 Compare March 18, 2020 15:14
@julianoes
Copy link
Contributor Author

Merging depends on #14134.

Resolved, ready to be merged.

@TSC21 TSC21 merged commit 89599f3 into master Mar 18, 2020
@TSC21 TSC21 deleted the pr-mavsdk-tests-improvements branch March 18, 2020 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants