?????? ??karma???????
????→ ????app??test?????
????→npm install karma --save-dev
????→npm install karma-jasmine --save-dev
????→npm install karma-chrome-launcher --save-dev
????→karma init
????→??????????What is the location of your source and test files?????д??
????app/**/*.js
????test/**/*.js
?????? ?????????
????→ ??test?′???test.js???
????describe("true"?? function(){
????it("Should be true"?? function(){
????expect(true).toBeTruthy();
????});
????});
????→ karma start karma.confi.js
?????? ???Angular???
????→ npm install angular
????→ npm install angular-mocks
????→ npm install angular-resource
????→ ??karma.confi.js??????Angular????????????
????files: [
????'node_modules/angular/angular.js'??
????'node_modules/angular-mocks/angular-mocks.js'??
????'node_modules/angular-resource/angular-resource.js'??
????'app/**/*.js'??
????'test/**/*.js'
????]??
????→ karma start karma.confi.js