Skip to content

Go. Empty test file is generated in a new Go project #2044

Closed
@alisevych

Description

@alisevych

Description

Empty test file is generated for samples.go

To Reproduce

  1. Open IntelliJ Idea 2022.3 Ultimate
  2. Install plugin built from unit-test-bot/rc2023.3 branch
  3. Create a new Go project
  4. Copy-paste utbot-go/go-samples/simple folder into it
  5. Turn 'Experimental languages support' on
  6. Use plugin to generate tests for any/all of the functions in samples.go

Expected behavior

Tests are supposed to be generated.

Actual behavior

Empty test file is generated.

Visual proofs (screenshots, logs, images)

package simple

Environment

Windows 10 Pro
IntelliJ Idea 2022.3 Ultimate
Go 1.20.1

Additional context

In UTBotJava project tests are generated.

Mar24Go.zip

Metadata

Metadata

Assignees

Labels

ctg-bugIssue is a buglang-goIssue is related to Go support

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions