Skip to content

Test sources root for IntelliJ or Maven project can be created automatically #1302

@alisevych

Description

@alisevych

Description

If there are no existing test sources root in an IntelliJ or Maven project UnitTestBot can create one automatically.
Gradle project has specifics, there a user is asked to create test sources root by themselves.

To Reproduce

  1. Install latest build from main into IDEA 2022.2.3
  2. Create a new IntelliJ / Maven project
  3. Add some Java class
  4. Call UnitTestBot on it: Alt+Shift+U

Expected behavior

UnitTestBot dialog should be opened - with a new test sources root suggested to create.

Actual behavior

Test source roots not found error dialog is displayed.

Visual proofs (screenshots, logs, images)

image

Environment

Windows 10 Pro
IntelliJ IDEA 2022.2.3

Additional context

  1. User has created a test sources root
  2. Calls UnitTestBot on it: Alt+Shift+U

The new test sources root creation is suggested.
So why not create it automatically before?

image

Metadata

Metadata

Labels

comp-uiImprovements of plugin UI appearence and functionalityctg-bugIssue is a bug

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions