C-Plus-Plus icon indicating copy to clipboard operation
C-Plus-Plus copied to clipboard

test: add CTest to cmake to enable testing

Open realstealthninja opened this issue 1 year ago • 1 comments

Description of Change

Testing

This pr enables testing of the algorithms in the repository before we get to the stage of running tests on a CI. We will need to remove all other code from every main function so that the only remaining code is a call to the test function.

for now this draft pull request shows how easy it is to enable testing. adding it to the awesome CI will be as easy as adding make test to a test step.

Checklist

  • [x] Added description of change
  • [x] Added file name matches File name guidelines
  • [x] Added tests and example, test must pass
  • [x] Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • [x] Relevant documentation/comments is changed or added
  • [x] PR title follows semantic commit guidelines
  • [x] Search previous suggestions before making a new one, as yours may be a duplicate.
  • [x] I acknowledge that all my contributions will be made under the project's license.

Notes:

realstealthninja avatar Oct 04 '24 16:10 realstealthninja