Skip to content

Question re: generative providers and testing #140

@baronfel

Description

@baronfel

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 marked internal 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

  1. Clone the SwaggerProvider PR linked above
  2. Run build.cmd or build.sh
  3. See the compilation failure in 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

  • Any OS
  • master@130750141e9033f2f6f82368745a18fafe98d305
  • .NET Runtime 4.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions