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

Unit tests #48

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Unit tests #48

wants to merge 3 commits into from

Conversation

MartinHerren
Copy link
Contributor

Hi Cees,

here a first PR introducing unit tests. Wanted to do more tests but didn't have time yet. So at least a first version until i have more time.

  • Adding the CMocka unit test framework
  • Adding first tests on the TLE reader wrapper and doing minor fixes detected while writing tests
  • Adding github actions so the tests will run when you push changes

I investigated several unit test frameworks. Choice was limited by

  • being pure C framework, no need of a C++ compiler
  • being standard libs available in every debian/ubuntu system

Tested CMocka, CUnit and Check, found CMocka to be best (modern design, maintained, pretty output, easy and complete testing). If you'd prefer CUnit or Check i could easily switch to them.

The goal was to work on 'displaying satellite names' in rfplot which finally takes a little more work than expected and adding unit tests to the TLE loading code was a good start not to break anything.

Will work on this as soon as i have time and will also try to improve testing. Some parts will require more refactory to become testable.

MartinHerren and others added 3 commits June 20, 2023 07:57
Signed-off-by: Martin Herren (HB9FXX) <cq@hb9fxx.ch>
Signed-off-by: Martin Herren (HB9FXX) <cq@hb9fxx.ch>
Signed-off-by: Martin Herren (HB9FXX) <cq@hb9fxx.ch>
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

1 participant