Skip to content

Conversation

@m-pilia
Copy link
Contributor

@m-pilia m-pilia commented Jun 12, 2025

Since RC_GTEST_FIXTURE_PROP is not registering the properties as GTest test cases within the given fixture, if the given fixture defines SetUpTestSuite or TearDownTestSuite they will not be called by RapidCheck, and there is no guarantee that they have already been called by GTest. This will result in bugs.

Fix this issue by ensuring that the properties are registered as test cases in the given GTest fixture.

This slightly alters the naming scheme for GTest test cases generated by RC_GTEST_FIXTURE_PROP.

Resolves #338

Since RC_GTEST_FIXTURE_PROP is not registering the properties as GTest
test cases within the given fixture, if the given fixture defines
SetUpTestSuite or TearDownTestSuite they will not be called by
RapidCheck, and there is no guarantee that they have already been called
by GTest. This will result in bugs.

Fix this issue by ensuring that the properties are registered as test
cases in the given GTest fixture.

This slightly alters the naming scheme for GTest test cases generated by
RC_GTEST_FIXTURE_PROP.
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.

[Bug] SetUpTestSuite might not be called when using RC_GTEST_FIXTURE_PROP

1 participant