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 245863 - Debugging sources with Karma and external test folder with basePath property
Summary: Debugging sources with Karma and external test folder with basePath property
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Testing (show other bugs)
Version: 8.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-22 07:20 UTC by Vladimir Riha
Modified: 2014-07-24 16:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (616.81 KB, application/zip)
2014-07-22 07:22 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-07-22 07:20:55 UTC
Please check the attached project, it contains configuration for Karma project with test folder outside of project root. Unlike in issue 245833, this project uses basePath Karma configuration property.

Try to add line breakpoints to:
 - directives.js:5
 - directives.js:11
 - directivesSpec.js:11
 - directivesSpec.js:15

And try to debug the tests. Breakpoints in directives.js are ignored, but breakpoints in directivesSpec.js works OK. In the debug.html opened by IDE, tests are referenced with URL

/absolute/home/vriha/Downloads/karma_testy/245833/ext_test/project_debug_8/neco/test/unit/servicesSpec.js

And sources with

/base/app/js/directives.js


Product Version: NetBeans IDE Dev (Build 201407220001)
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2014-07-22 07:22:00 UTC
Created attachment 148192 [details]
sample project

run NPM install on the project
Comment 2 Tomas Mysik 2014-07-22 09:52:36 UTC
Should be fixed now. Thanks.

http://hg.netbeans.org/web-main/rev/f5415f073fcf
Comment 3 Quality Engineering 2014-07-23 02:08:45 UTC
Integrated into 'main-silver', will be available in build *201407230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f5415f073fcf
User: Tomas Mysik <tmysik@netbeans.org>
Log: #245863 - Debugging sources with Karma and external test folder with basePath property
Comment 4 Vladimir Riha 2014-07-24 16:25:26 UTC
Tested various configurations on Windows/Mac/Linux, issue with Windows is filled as 245931.

Verified, thank you


Product Version: NetBeans IDE Dev (Build 201407240001)
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)