Page 1
AngularJS Testing
@ahmehriAhmed Elmehri
Page 2
Testing is SO IMPORTANT
2
Page 3
AngularJS and Testing
https://flic.kr/p/7TvLop
Page 4
Testable by Design
testable
4
Page 5
Faster and Easier Testing
testing
fast to write and run
5
Page 6
Good Relationship
https://flic.kr/p/7TvLop
Page 7
Testing Toolshttps://flic.kr/p/2DWGDT
Page 8
Testing ToolsTest Framework Test Runner
Test
Run
TestTest
Test
Test
Test
Test
More Customizations8
Page 9
Jasmine
https://flic.kr/p/4PY2ba
Page 11
Standalone
DOM
JS Framework
11
Page 12
Testing Levels
https://flic.kr/p/uQpnNp
Page 13
Testing Levels and Tools
Unit Tests
End to End (E2E) Tests
13
Test Runner
Page 14
Good Integration with CI Tools
14
Page 15
Run on Node.js
extremely fast
15
Page 16
CI Tools and Node.js
Builds Tests
16
Page 19
Run on Real Browsers
Headless Browser
Headless Testing
Lot of DOM Manipulations
Real Browser
19
Page 20
Test Framework Agnostic
20
Page 22
Protractor
https://flic.kr/p/iejK3M
Page 24
Built on Top of WebDriverIO
24
(Formerly WebDriverJS) AngularJS app
Native events
Specific drivers
Page 25
No More Waits
25
Fluentlenium
Page 26
No More Waits
26
Automatic Transition
Page 28
Thank You@ahmehriAhmed Elmehri
#angularJS-testing