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

Replace GoogleTest w/ Catch2 #251

Closed
rakhimov opened this issue Jan 4, 2018 · 0 comments
Closed

Replace GoogleTest w/ Catch2 #251

rakhimov opened this issue Jan 4, 2018 · 0 comments
Labels
Milestone

Comments

@rakhimov
Copy link
Owner

rakhimov commented Jan 4, 2018

Catch2 is a testing framework for modern C++ (Issue #250).

SCRAM depends on a custom patch to GoogleTest,
so sooner or later it must be dealt with.

@rakhimov rakhimov added this to the v0.16.2 milestone Jan 4, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
This is a transitional configuration
with catch2 tests being run by scram_catch binary.

Issue #251
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
cpplint is getting confused with Catch2 macros.

Issue #251
rakhimov added a commit that referenced this issue Jan 12, 2018
This uses Catch2 fixtures to replace GTest fixtures.
The major annoying difference
is that Catch2 does not namespace test names with fixture names,
so the test names must be unique globally.

Issue #251
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
The transition of all tests is not complete.
Catch2 does not support value parametrized tests.
It still needs a workaround.

Issue #251
rakhimov added a commit that referenced this issue Jan 12, 2018
rakhimov added a commit that referenced this issue Jan 12, 2018
Catch2 abuses exit codes to mean various things.

Issue #251
rakhimov added a commit that referenced this issue Jan 12, 2018
Parametrized tests are not yet implemented.

Issue #251
rakhimov added a commit that referenced this issue Jan 12, 2018
To ease the burden, transitional macros are provided
to convert GTest macros into Catch2 macros.

This completes the transition of test source files to Catch2.
However, parametrized tests are not yet implemented.

Issue #251
rakhimov added a commit that referenced this issue Jan 12, 2018
Catch2 does not support parametrized tests.
This is a workaround with a static data.
It is not ideal, but runs the needed algorithms.

Issue #251
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant