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

IDEA marks test functions and classes as unused #186

Open
Avvessalom opened this issue Mar 15, 2022 · 9 comments
Open

IDEA marks test functions and classes as unused #186

Avvessalom opened this issue Mar 15, 2022 · 9 comments
Labels

Comments

@Avvessalom
Copy link

Hello. Faced such a problem:

When using annotation spec, IDEA marks test functions as unused
image

Also, functions that use other annotations are also marked as unused.
image
image

On functional spec, the class is marked as unused
image

Kotest plugin for IDEA installed, version 1.1.49-IC-213-EAP-SNAPSHOT

Please tell me, is this a problem with the framework or with the IDE?

@sksamuel sksamuel added enhancement New feature or request intellij-plugin labels Mar 26, 2022
@stale
Copy link

stale bot commented Apr 28, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@Avvessalom
Copy link
Author

still actual

@sksamuel sksamuel transferred this issue from kotest/kotest Jun 12, 2022
@scarf005
Copy link

scarf005 commented Dec 9, 2022

hi, this issue has been open for some month, and I'm also getting exactly the same issue. would there be plans to address it? for now I have to add @Supress("unused") every time for each test objects.

@sksamuel
Copy link
Member

@scarf005 which version of intellij ?

@scarf005
Copy link

it's 2022.03

@sksamuel
Copy link
Member

sksamuel commented Jan 29, 2023 via email

@sksamuel
Copy link
Member

I'm hoping this might help 15847af

@DJ-Glock
Copy link

DJ-Glock commented Mar 28, 2023

I am not sure about previous versions, but now IDEA allows to ignore this rule if method is annotated with one of Kotest annotations:
image

@Spikhalskiy
Copy link

The problem in still present in 2023.3.4 when using AnnotationSpec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants