This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 175159 - Profile File on a unit test doesn't seem to do the right thing
Summary: Profile File on a unit test doesn't seem to do the right thing
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on: 203519
Blocks:
  Show dependency tree
 
Reported: 2009-10-22 00:49 UTC by Vince Kraemer
Modified: 2012-04-17 14:18 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vince Kraemer 2009-10-22 00:49:26 UTC
I expected it to profile the test (which gets run in the embedded container).

It doesn't.

It looks like it tries to start the server in profile mode.  starting the server is wrong. starting it in profile mode
is wrong.
Comment 1 Vince Kraemer 2009-10-22 03:45:38 UTC
add Marina for additional input
Comment 2 Andrey Yamkovoy 2009-11-13 06:18:12 UTC
Not planned for 6.8
Comment 3 Petr Jiricka 2011-10-06 13:45:24 UTC
Not sure if this needs to be addressed in the project area or server infrastructure.
Comment 4 David Konecny 2012-04-16 23:25:55 UTC
Looks like NetBeans Profiler is not integrated correctly into Web Project. It should run unit test in profiler and no server should be started.

I tried it on a regular unit test in Dev build of 7.2 and it results into dialog saying "The class does not have a main method nor it is a Servlet".

Profiling support is owned by a different team, is it?
Comment 5 J Bachorik 2012-04-17 14:18:48 UTC
This should work in the current dev builds (checked with 20120416). If you can reproduce the problem on a recent build, please reopen and provide a sample project.