Menu point for profile a test does not work
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 18
### What happened
When I select a JUnit 5 test class and select under "Profile" "Profile test file" the I get the error dialog:
Class "" does not have a main method.
It does not matter, if it is a simple JUnit test class with suffix Test or an integration test with suffix IT

### How to reproduce
I think a simple try to profile a JUnit 5 test reproduce this error.
### Did this work correctly in an earlier version?
Apache NetBeans 13 or earlier
### Operating System
Windows 10
### JDK
OpenJDK 11
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Start by reproducing the failure from a JUnit 5 test class through Profile > Profile test file on Apache NetBeans 18. Compare the behavior with the earlier working version if available; done means profiling the selected JUnit 5 test works without requiring a main method.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100