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

Convert tests to Catch2 #416

Merged
merged 16 commits into from
Dec 15, 2023
Merged

Convert tests to Catch2 #416

merged 16 commits into from
Dec 15, 2023

Conversation

bifurcation
Copy link
Contributor

As discussed in #415, doctest is broken and abandoned. Catch2 seems to be a more standard and more supported test framework. This PR converts MLSpp's tests from doctest to Catch2.

  • Adjust all the vcpkg.json files so that Catch2 is available in all configurations
  • Updates CMakeLists.txt in the test files to build/link against Catch2
  • Makes some minor fixes in test files to fix errors building against Catch2

And for good measure, I went ahead and re-enabled tests on Windows. We'll see what happens in CI!

@bifurcation
Copy link
Contributor Author

It turns out that what happens in CI is that the Windows tests still hang without SANITIZERS and blow up with it. The latter appears to be a known issue, since 2022. So I have re-disabled Windows tests. It looks like we're going to have to address the hang more directly.

I think it's still worthwhile to merge this PR, in order to get on a more supported testing framework.

@bifurcation
Copy link
Contributor Author

Merging based on offline 👍 from @glhewett and @birarda

@bifurcation bifurcation merged commit 43b3cb4 into main Dec 15, 2023
3 checks passed
@glhewett
Copy link
Contributor

Did you meant to comment out all of the tests? I guess not: #418

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.

2 participants