Skip to content

Publish SimpleModule.Tests.Shared (or extract a SimpleModule.Testing package) to NuGet #133

@antosubash

Description

@antosubash

tests/SimpleModule.Tests.Shared/ contains exactly the helpers a consumer needs to write integration tests with auth:

  • SimpleModuleWebApplicationFactory : WebApplicationFactory<TProgram>
  • TestAuthHandler — header-based test auth (reads X-Test-Claims)
  • CreateAuthenticatedClient(string[] permissions, params Claim[] claims) and CreateAuthenticatedClient(params Claim[] claims)

But it's not packed/published — no simplemodule.tests.shared exists on NuGet (verified via nuget.org flatcontainer). Consumers either:

  1. Copy the file out of the framework repo (and drift from upstream improvements), or
  2. Reinvent TestAuthHandler from scratch (loses the tenant_id claim conventions, etc.)

Fix

  • Set IsPackable=true on the project (currently false)
  • Add it to the release workflow's pack pass
  • Publish to NuGet alongside other 0.0.x bumps

Could also be re-named SimpleModule.Testing if the Tests.Shared name implies "internal" too strongly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions