CPP Unit Testing
jeffmur opened this issue · comments
Jeffrey Murray Jr commented
Require unit test of FHEL, this should eventually be tested with github actions.
There are three layers in this system:
- Back-end Library (Microsoft SEAL, OpenFHE)
- Abstract Layer (AFHEL)
- Implementation Layer (Dart API)
Each layer should contain good test coverage. This repository is only responsible for maintaining layer 2 and 3, so we must test appropriately.
There are two popular CPP frameworks for testing.
For the purpose of this project
- Basic Functionality
- Parameter Validation
- API Usage
Google Test: https://github.com/google/googletest
- Supports mock testing
- Requires additional compilation process (de-coupled from source)
Catch2: https://github.com/catchorg/Catch2
- Simple unit testing
- Supports benchmarking