Skip to content

Existing test file without test class obstruct generation #160

Closed
@EgorkaKulikov

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

Metadata

Metadata

Labels

comp-uiImprovements of plugin UI appearence and functionalityctg-bugIssue is a bugstatus-verifiedBug fix is verified

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions