有没有办法阻止Karma提供缓存文件?

时间:2017-09-29 18:02:59

标签: javascript angularjs karma-jasmine

所以这是我的问题。我正在尝试为我的旧应用程序运行测试套件。但是,我偶然发现了臭名昭着的卡玛错误:Executed 0 of 0 ERROR

当我将Karma的loglevel转为调试时,我意识到正在打印这些行:

DEBUG [web-server]: serving:     /home/**/**/**/node_modules/karma/static/context.html
DEBUG [web-server]: serving (cached): /home/**/**/**/node_modules/jasmine-core/lib/jasmine-core/jasmine.js
DEBUG [web-server]: serving (cached): /home/**/**/**/node_modules/karma-jasmine/lib/boot.js
DEBUG [web-server]: serving (cached): /home/**/**/**/node_modules/karma-jasmine/lib/adapter.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/jquery/dist/jquery.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular/angular.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular-i18n/angular-locale_es-ar.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular-animate/angular-animate.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular-resource/angular-resource.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular-cookies/angular-cookies.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular-sanitize/angular-sanitize.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular-ui-utils/ui-utils.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular-ui-select/dist/select.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular-hateoas/src/angular-hateoas.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/ng-table/dist/ng-table.min.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular-notify-toaster/toaster.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular-ui-router/release/angular-ui-router.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular-strap/dist/angular-strap.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular-strap/dist/angular-strap.tpl.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/sockjs/sockjs.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/stomp-websocket/lib/stomp.min.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/http-cas/src/http-cas.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/lodash/lodash.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/moment/moment.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/moment/locale/es.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular-bootstrap/ui-bootstrap-tpls.js
DEBUG [web-server]: serving (cached): /home/**/**/**/bower_components/angular-moment/angular-moment.js
DEBUG [web-server]: serving (cached): /home/**/**/**/src/app/scripts/app.js

正如您所知,没有规格。我尝试将一个spec文件添加到files内的karma.conf.js数组中,但无济于事。打印相同的文件。

我假设我的问题与所说的缓存有关。

任何帮助都将深受赞赏。

一切顺利,

亚历

0 个答案:

没有答案