Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
volivan239 opened this issue Sep 16, 2022 · 0 comments · Fixed by #1019
Closed

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

volivan239 opened this issue Sep 16, 2022 · 0 comments · Fixed by #1019
Assignees
Labels
ctg-bug Issue is a bug

Comments

@volivan239
Copy link
Collaborator

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.

@volivan239 volivan239 added the ctg-bug Issue is a bug label Sep 16, 2022
@volivan239 volivan239 self-assigned this Sep 16, 2022
@korifey korifey moved this to Todo in UTBot Java Sep 16, 2022
Repository owner moved this from Todo to Done in UTBot Java Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ctg-bug Issue is a bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant