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 245207 - Karma code coverage and debug can't run together, please improve the workflow
Summary: Karma code coverage and debug can't run together, please improve the workflow
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 8.0.1
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-24 08:11 UTC by Martin Fousek
Modified: 2014-06-25 04:36 UTC (History)
3 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 Martin Fousek 2014-06-24 08:11:37 UTC
Product Version: NetBeans IDE Dev (Build 20140620-b87c6c9f1372)
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Linux version 3.11.0-12-generic running on amd64; UTF-8; en_US (nb)

You can't run Karma debug and Karma coverage at one moment because the code coverage preprocessing includes mess into the javascript sources which mades them non-debuggable then.

It would have sense to show warning somewhere inside the IDE that such actions are not possible to run together. Also temporarily it could turn off the coverage which has usually lower priority. But that's hard to guess, the setup will likely differ at users.
Comment 1 Tomas Mysik 2014-06-24 12:17:45 UTC
1) I will add a warning to the Project Properties dialog.
2) For Karma Debug, coverage will be disabled. Info message will be shown, only once per IDE session.

Thanks.
Comment 2 Tomas Mysik 2014-06-24 13:09:42 UTC
Done. Please verify and let me know if you have a better info message. BTW as a side effect, now the Karma server must be restarted if Debug mode changes.

Thanks.

http://hg.netbeans.org/web-main/rev/8fd96bcf4cc8
Comment 3 Tomas Mysik 2014-06-24 13:15:25 UTC
(In reply to Tomas Mysik from comment #2)
> now the Karma server must be restarted if Debug mode changes.

Note: this si done automatically by NetBeans, no need for a user action.
Comment 4 Quality Engineering 2014-06-25 02:31:25 UTC
Integrated into 'main-silver', will be available in build *201406250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8fd96bcf4cc8
User: Tomas Mysik <tmysik@netbeans.org>
Log: #245207 - Karma code coverage and debug can't run together, please improve the workflow
Comment 5 Martin Fousek 2014-06-25 04:36:53 UTC
Works like a charm, thanks a lot.