Skip to content

"Entry <...> is a duplicate" error after launching test generated for Kotlin #950

Closed
@volivan239

Description

@volivan239

Description

Each time I generate tests with UTBot for Kotlin code, I'm unable to launch them because build fails.

To Reproduce

  1. Create a Kotlin class
  2. Launch action on it
  3. Launch generated tests

Expected behavior

Tests are launched normally.

Actual behavior

Build fails

Visual proofs (screenshots, logs, images)

Execution failed for task ':jar'.
> Entry generics/StandardCollections.class is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.0.2/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.

(generics.StandarCollections is the class I'm launching action on)

Environment

Default sandbox.

Additional context

Running gradle clean after test generation fixes the problem.

Metadata

Metadata

Assignees

Labels

ctg-bugIssue is a bug

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions