Your project tested #nodejs
-
Upload
eldar-djafarov -
Category
Technology
-
view
631 -
download
2
Transcript of Your project tested #nodejs
![Page 1: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/1.jpg)
your project testednodejsby @edjafarov
Субота, 13 квітня 13 р.
![Page 2: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/2.jpg)
structure
codestylecheck
unitfrontend
unitbackend
integr.backend
functional
Субота, 13 квітня 13 р.
![Page 3: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/3.jpg)
why tests ‘fail’
• It’s taking too long
• It’s too hard to run
• You don’t run’em
• They fail or blink
Субота, 13 квітня 13 р.
![Page 4: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/4.jpg)
style check
jshintsame as jslint but you can ignore anythingand test YOUR code style
Субота, 13 квітня 13 р.
![Page 5: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/5.jpg)
jshint
Субота, 13 квітня 13 р.
![Page 6: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/6.jpg)
unit testing
chai [tʃʌɪ]
mocha [ˈmɒkəә]
sinon
rewire
test framework for async code
BDD / TDD assertion library
test spies, stubs and mocks for JavaScript
node.js dependency injection
Субота, 13 квітня 13 р.
![Page 7: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/7.jpg)
mocha/chai
Субота, 13 квітня 13 р.
![Page 8: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/8.jpg)
sinon spy
Субота, 13 квітня 13 р.
![Page 9: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/9.jpg)
sinon stub
Субота, 13 квітня 13 р.
![Page 10: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/10.jpg)
rewire
Субота, 13 квітня 13 р.
![Page 11: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/11.jpg)
integration testing
nockHTTP mocking and expectations library
localtunnelexposes your localhost to the world
Субота, 13 квітня 13 р.
![Page 12: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/12.jpg)
nock
Субота, 13 квітня 13 р.
![Page 13: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/13.jpg)
localtunnel
Субота, 13 квітня 13 р.
![Page 14: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/14.jpg)
frontend unit testing
testacular-karma [♥jasmine/mocha]Spectacular Test Runner for JavaScript.
And you can do test coverage (:
Субота, 13 квітня 13 р.
![Page 15: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/15.jpg)
karma configurator
Субота, 13 квітня 13 р.
![Page 16: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/16.jpg)
functional testing
PhantomJS 1.8 + require(‘wd’)A node.js javascript client for webdriver/selenium 2
Субота, 13 квітня 13 р.
![Page 17: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/17.jpg)
Selenium WD
Субота, 13 квітня 13 р.
![Page 18: Your project tested #nodejs](https://reader034.fdocuments.in/reader034/viewer/2022052321/5557d551d8b42af2178b4d62/html5/thumbnails/18.jpg)
Thanks!
http://bit.ly/fd-debitoorwanna do hardcore node.js?
Q&A
jshintmocha
chaisinon
rewirenock
localtunneltestacular-karmaphantomjs + wd
Субота, 13 квітня 13 р.