swagger-api / swagger-api/swagger-codegen

[C#] Unit Tests Project not generated for .NET Standard target framework

Open
#11,095 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

We do not not target .NET Framework in our development, and so would prefer to use the .NET Standard targetFramework. However, when this is selected the NUnit tests are not generated.

Swagger-codegen version

I am using the version in SwaggerHub; I'm not sure how to find the precise version.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce generation with the .NET Standard target framework and compare the output with a .NET Framework generation, since no source files or test paths are named. Trace the C# generator templates or entry points responsible for the NUnit project; done means a NUnit tests project is generated for .NET Standard and the relevant generation test passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.