+ All Categories
Home > Documents > How to use Karma tools testing

How to use Karma tools testing

Date post: 19-Dec-2015
Category:
Upload: gamma-prima
View: 22 times
Download: 0 times
Share this document with a friend
Description:
Simply use Karma Tool for software testing. get more information | send email to [email protected]
16
Transcript
Page 1: How to use Karma tools testing
Page 2: How to use Karma tools testing
Page 3: How to use Karma tools testing
Page 4: How to use Karma tools testing
Page 5: How to use Karma tools testing
Page 6: How to use Karma tools testing
Page 7: How to use Karma tools testing
Page 8: How to use Karma tools testing
Page 9: How to use Karma tools testing

--|AngularJS ----|tests -------controllerTest.js -------firstTest.js ----angular.js ----angular.mocks.js ----app.html ----app.js ----karma.config.js

Page 10: How to use Karma tools testing
Page 11: How to use Karma tools testing
Page 12: How to use Karma tools testing

files: [ 'angularjs/angular.js', 'angularjs/angular-mocks.js', 'angularjs/app.js', 'angularjs/tests/firstTest.js', 'angularjs/tests/controllerTest.js‘ ],

Page 13: How to use Karma tools testing

beforeEach() expect() toEqual()

Page 14: How to use Karma tools testing

Expected 1 to equal 0

Page 15: How to use Karma tools testing
Page 16: How to use Karma tools testing

Recommended