karma-runner / karma

Spectacular Test Runner for JavaScript
http://karma-runner.github.io
MIT License
11.96k stars 1.71k forks source link

Get rid of the "base" directory #1607

Open tkrotoff opened 9 years ago

tkrotoff commented 9 years ago

Following a question I've asked (without success) on the mailing-list few months ago: Why a directory named "base" is prepended to all the loaded files?

With Karma all files are inside a directory named "base". I don't see the need for this added complexity.

karma

In comparison, when using Jasmine directly (gulp-jasmine-browser or by writing my own SpecRunner.html), there is no "indirection": all files are loaded from the root directory => much easier, the way it should be.

gulp-jasmine-browser

ghost commented 9 years ago

+1, base is making things hard, especially interoperability with different test systems.

victor-xiong commented 8 years ago

+1, html page setup with karma 'base' will not be able to be open correctly by other web servers.

jcrben commented 8 years ago

If nothing else, we should figure out what advantages (if any) the base prefix provides.

jeremyroberts0 commented 8 years ago

+1, this is a regular source of annoyance in XHR paths.

jamesdanged commented 7 years ago

Seems there is now an easy way to deal with this by using the "proxies" setting. See http://karma-runner.github.io/1.0/config/files.html >> Loading Assets.

franktopel commented 4 years ago

@jamesdanged Can you show an example of how to address this problem using the proxies setting?

Krinkle commented 3 years ago

Proposal:

johnjbarton commented 3 years ago

FWIW I don't know why base. The middleware code seems too compact and difficult to follow. We've wondered if we could rework it with express somehow.