OpenAPITools / OpenAPITools/openapi-generator
[BUG] [KOTLIN] Tests are not generated
Open
Nobody has claimed this yet.
Issue: Bug
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
- Have you provided a full/minimal spec to reproduce the issue?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Gradle generator with kotlin does not generate expected tests.
There is no .openapi-generator-ignore file
openapi-generator version
Tested with versions
6.2.1, 6.1.0, 6.0.1, 5.3.1, 5.2.1
Generation Details
task generate(type: org.openapitools.generator.gradle.plugin.tasks.GenerateTask) {
inputSpec = "PATH"
generatorName = "kotlin"
generateModelTests = true
generateModelDocumentation = false
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Gradle GenerateTask configuration and the Kotlin generator's model-test generation path. Reproduce the issue using an OpenAPI input spec with generateModelTests enabled, then compare the generated files with the expected model tests. Done means the configured Kotlin generation produces the expected tests without an ignore file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin, openapi
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100