-
Notifications
You must be signed in to change notification settings - Fork 95
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
Question re: generative providers and testing #140
Comments
The PR mentioned in this PR fails with error (when compiling the project that uses TP)
this also looks like an issue of SDK. Repro steps are the same |
@baronfel Can use use InternalsVisibleTo? |
@baronfel Did using InternalsVisibleTo help? |
Since we rolled back to initial API that does not use context - #148 (comment) we do not really need it anymore. I did restore tests here - fsprojects/SwaggerProvider@30da540 @baronfel please reopen if i am wrong |
Description
I'm working on testing out the new context-aware changes on the SwaggerProvider PR here, and wanted to make sure I was doing things correctly.
I ran into a small problem with the way the SwaggerProvider does its testing. I need to be able to create a testing TypeProviderConfig, which I'd like to do with
ProvidedTypesTesting.Testing.MakeSimulatedTypeProviderConfig
, but that whole module is markedinternal
so it's not available across the module boundary.Is there a more-supported way to test TP generation?
Repro steps
Please provide the steps required to reproduce the problem
build.cmd
orbuild.sh
SwaggerProvider\tests\SwaggerProvider.Tests\Schema.Parser.Tests.fs
.Expected behavior
I have some mechanism to create a TypeProviderConfig
Actual behavior
I can't without removing the
internal
scope from the module .Known workarounds
Remove the
internal
scope from the module .Related information
The text was updated successfully, but these errors were encountered: