apache / apache/netbeans

Menu point for profile a test does not work

Open
#6,131 1 comment 0 reactions 0 assignees View on GitHub
kind:bug needs:triage profiler tests
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

![grafik](https://github.com/apache/netbeans/assets/89414261/f2f9c335-fde9-4cce-b04d-b6915d8db7bf)

### 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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.