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

Plugin does not discover top-level methods in .kt files #847

Closed
CaelmBleidd opened this issue Sep 2, 2022 · 0 comments · Fixed by #1147
Closed

Plugin does not discover top-level methods in .kt files #847

CaelmBleidd opened this issue Sep 2, 2022 · 0 comments · Fixed by #1147
Assignees
Labels
comp-ui Improvements of plugin UI appearence and functionality ctg-bug Issue is a bug lang-kotlin Issue is related to Kotlin language support

Comments

@CaelmBleidd
Copy link
Member

Description

If we have a file with top-level functions (some Utils.kt), there will be no available methods for testing found (actually, you can't even call an action).

To Reproduce

Steps to reproduce the behavior:

  1. Run an empty project in IntelliJ Idea
  2. Create a kotlin file with top-level function
  3. Try to use the plugin to generate tests

Expected behavior

Opened UTBot dialog

Actual behavior

Nothing happens

Visual proofs (screenshots, logs, images)

image

Environment

There is no specific environment.

Additional context

There is no additional context.

@CaelmBleidd CaelmBleidd added ctg-bug Issue is a bug comp-ui Improvements of plugin UI appearence and functionality labels Sep 2, 2022
@CaelmBleidd CaelmBleidd moved this to Todo in UTBot Java Sep 2, 2022
@alisevych alisevych modified the milestone: Release preparation Sep 7, 2022
@tyuldashev tyuldashev added the lang-kotlin Issue is related to Kotlin language support label Oct 28, 2022
Repository owner moved this from Todo to Done in UTBot Java Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-ui Improvements of plugin UI appearence and functionality ctg-bug Issue is a bug lang-kotlin Issue is related to Kotlin language support
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants