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 #97

Open
c-dilks opened this issue Jan 31, 2024 · 0 comments
Open

Unit tests #97

c-dilks opened this issue Jan 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@c-dilks
Copy link
Member

c-dilks commented Jan 31, 2024

Currently we just test using the examples, but we will eventually have a lot of algorithms. It would be nice to unit test them.

Meson has some support for this, where we could use the example executables, but perhaps we need a more generalized executable to cover all the algorithms. We also need to check the output is correct.

We could use a common testing framework such as catch2 or gtest; feed an algorithm some manually-made banks, then check if the output is as expected.

Any additional dependencies that are needed for unit testing should be optional, since not all users will be interested in running them (rather, that is the job of the CI and developers).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant