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

Integrate GoogleTest into Rendera #41

Open
wermos opened this issue Jul 28, 2022 · 0 comments
Open

Integrate GoogleTest into Rendera #41

wermos opened this issue Jul 28, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@wermos
Copy link
Owner

wermos commented Jul 28, 2022

As it stands, we have some complex vector classes in the utilities/ directory. To ensure correctness, we want to write some tests and make sure that they work as expected. However, to do so, we need a testing framework, which is why we need Google Test.

What to do

  1. Integrate Google Test as a submodule to our repository.
  2. Write tests to test all the arithmetic operations supplied by the vec4 and vec3 classes. The tests should go inside a tests directory inside utilities.
    a. The CMakeLists.txt inside utilities should also be updated to properly build Google Test, and expose the headers to Rendera source files.
    b. Test the vector addition and subtraction by testing with some trivial values, and also write some randomized tests, which will randomly generate values and check the answers for correctness.
    c. Test the scalar multiplication code, using the same technique.
    d. Test the cross and dot products. This will be a little bit more tricky to test.
@wermos wermos added enhancement New feature or request help wanted Extra attention is needed labels Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant