Skip to content

Existing test file without test class obstruct generation #160

Closed

Description

@EgorkaKulikov

Description

If a test file with some name has already been created, but there is no test class in it, generating tests in this file will not be finished successfully.

To Reproduce

  • Create class A
  • Create file ATest without class ATest in similar package in test root
  • Generate tests for A

Expected behavior

Tests are generated successfully. The content of ATest file is overwritten with generated test code.

Actual behavior

Test generation fails with error popup: "Failed to Create Class"

160 issue

Activity

  1. added
    comp-ui
    on Jun 7, 2022
  2. moved this from Todo to In Progress in UTBot Javaon Jul 5, 2022
  3. Repository owner moved this from In Progress to Done in UTBot Javaon Jul 6, 2022
  4. added
    status-verified
    on Jul 6, 2022
  5. added a commit that references this issue on Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

comp-uictg-bugstatus-verified

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions