Profiling test file is looking for a main method
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 15
### What happened
Choosing `Profile Test File` from the context menu of a Java test file in a Maven project produces the an error and NetBeans looking for a `main()` method rather than running and profiling the test:

****
### How to reproduce
Just right click on a test and select to profile it.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Linux
### JDK
JDK 11
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
### Code of Conduct
Yes
Contributor guide
Research direction
Reproduce the issue by opening a Java test file in a Maven project and choosing Profile Test File from the context menu on Linux with JDK 11. Trace the profiling entry point that incorrectly looks for a main() method; done means the test runs and is profiled instead.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100