You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have test code in a Gradle project that I need shared across submodules, so it lives in a TestFixtures source directory. I'd like my code that's generated by the GraphQLGenerateTestClientTask to also exist in a TestFixtures sources directory so that I can share it across modules. Currently, there is no option to specify that a directory is a TestFixtures sources directory in the plugin, since it automatically marks the output directory as a Test sources root.
Describe the solution you'd like
A plugin configuration option that allows me to specify whether I want to generate the resulting code into a test sources root or a testFixtures sources root.
Describe alternatives you've considered
I've been able to get around this by overwriting the test sources root and adding the output directory to the testFixtures source set, like so:
Is your feature request related to a problem? Please describe.
I have test code in a Gradle project that I need shared across submodules, so it lives in a
TestFixtures
source directory. I'd like my code that's generated by theGraphQLGenerateTestClientTask
to also exist in aTestFixtures
sources directory so that I can share it across modules. Currently, there is no option to specify that a directory is aTestFixtures
sources directory in the plugin, since it automatically marks the output directory as aTest
sources root.Describe the solution you'd like
A plugin configuration option that allows me to specify whether I want to generate the resulting code into a
test
sources root or atestFixtures
sources root.Describe alternatives you've considered
I've been able to get around this by overwriting the
test
sources root and adding the output directory to thetestFixtures
source set, like so:Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: