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

Adding google-test infra-structure. #151

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

Conversation

gguedesaz
Copy link

This is the initial implementation for enabling unit testing in this project. I added the infra-structure needed to use google-test and also created a small example of how the tests would look like.

I'd like to get feedbacks on what could be done better (mainly the part that checks for numbers with specific precision...), but I guess the backbone of the feature is handled. I didn't go too deep in the implementation as I don't even know if adding unit tests is going to be approved.

Please let me know if you have any questions, would be a pleasure to answer them :)

This changeset adds the infrastructure needed to run unit tests (google-test).

It uses CMake as build system, which makes things simple: Downloads the latest version of google-test and creates the necessary Makefiles for building it correctly.

For more infor, refer to README.md
Looking at the Tests/main.cpp I created what would be the unit test for the "SingleVariable" methods.

The idea is to extend the tests for all methods already implemented in Tests/main.cpp.
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.

1 participant