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

Allow for enabling data builders only in test flavours #5257

Open
Tracked by #6076
demoritas opened this issue Sep 25, 2023 · 1 comment
Open
Tracked by #6076

Allow for enabling data builders only in test flavours #5257

demoritas opened this issue Sep 25, 2023 · 1 comment

Comments

@demoritas
Copy link

Use case

Currently

 generateDataBuilders.set(true)

can only be globally enabled, this leads to data builders ending up in production code which is not optimal.

Describe the solution you'd like

It would be great to have a way to only enable them for tests

@zaenk
Copy link

zaenk commented Feb 17, 2024

this used to be a feature for testDataBuilders

generateTestBuilders.set(true)
testDirConnection {
    connectToKotlinSourceSet("testFixtures")
}

testDataBuilders is now deprecated in favor of generateDataBuilders - but according to the v4 migration guides theres noting to replace it with

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

No branches or pull requests

4 participants