Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong script URL when debugging #1145

Closed
ladariha opened this issue Jul 24, 2014 · 2 comments
Closed

Wrong script URL when debugging #1145

ladariha opened this issue Jul 24, 2014 · 2 comments

Comments

@ladariha
Copy link

I have karma.conf.js which contains files defined like:

       basePath : '../',
       files: [
        '../neco/test/lib/angular/angular-mocks.js',
        'app/js/**/*.js',
        '../neco/test/unit/**/*.js'
    ],

As you can see, I have ../neco/ for paths for my test files. If I open the Karma debug page (debug.html) and check CDT for loaded scripts, the test files have absolute URL:

<script type="text/javascript" src="/absoluteC:/Users/vlriha/Downloads/debug2/debug/project_debug_5/neco/test/unit/directivesSpec.js"></script>

while the source files have relative URL

<script type="text/javascript" src="/base/app/js/services.js"></script>

Shouldn't the absolute url be like

/absolute/C:/Users/vlriha/Downloads/debug2/debug/project_debug_5/neco/test/unit/directivesSpec.js

BTW Is there some command line parameter to force Karma to use always absolute paths?

@tmysik
Copy link

tmysik commented Jul 24, 2014

BTW Is there some command line parameter to force Karma to use always absolute paths?

Or perhaps better, some configuration property? If not, would it be possible to add it please?

Thanks.

@dignifiedquire
Copy link
Member

This is a known issue and hasn't been fixed yet: #251

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants