Skip to content

Issue/12751 stale test folder path after specifying source folder#1426

Open
deepjoshi11th wants to merge 3 commits into
swagger-api:masterfrom
deepjoshi11th:bug/12751-test-folder-path-fix
Open

Issue/12751 stale test folder path after specifying source folder#1426
deepjoshi11th wants to merge 3 commits into
swagger-api:masterfrom
deepjoshi11th:bug/12751-test-folder-path-fix

Conversation

@deepjoshi11th

Copy link
Copy Markdown

Description

Specified sourceFolder value doesn't properly propagate to test directory.
After my changes the source folder change is reflected entire generated project as expected.

Fixes: issue 12751 in swagger-codegen repo

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor (non-breaking change)
  • 🧪 Tests
  • 📝 Documentation
  • 🧹 Chore (build or tooling)

Checklist

  • I have added/updated tests as needed
  • I have added/updated documentation where applicable
  • The PR title is descriptive
  • The code builds and passes tests locally
  • I have linked related issues (if any)

How to Test

I have source code for both the repo swagger-codegen-generators and swagger-codegen. Along with that the issue page have 2 files provided which are CodeCofig.json and test.yaml

cd swagger-codegen-generators
mvn clean install
cd ../swagger-codegen
mvn clean package
cd ..
rm -rf bug-12751/code-debug
java -jar swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -l csharp -i bug-12751/test.yaml -c bug-12751/CodeConfig.json -o bug-12751/code-debug
 cd bug-12751/code-debug/
dotnet build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: the C# client library generator does not use the 'sourceFolder' option when generate the test project code.

1 participant