Download - Your project tested #nodejs
your project testednodejsby @edjafarov
Субота, 13 квітня 13 р.
structure
codestylecheck
unitfrontend
unitbackend
integr.backend
functional
Субота, 13 квітня 13 р.
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 р.
style check
jshintsame as jslint but you can ignore anythingand test YOUR code style
Субота, 13 квітня 13 р.
jshint
Субота, 13 квітня 13 р.
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 р.
mocha/chai
Субота, 13 квітня 13 р.
sinon spy
Субота, 13 квітня 13 р.
sinon stub
Субота, 13 квітня 13 р.
rewire
Субота, 13 квітня 13 р.
integration testing
nockHTTP mocking and expectations library
localtunnelexposes your localhost to the world
Субота, 13 квітня 13 р.
nock
Субота, 13 квітня 13 р.
localtunnel
Субота, 13 квітня 13 р.
frontend unit testing
testacular-karma [♥jasmine/mocha]Spectacular Test Runner for JavaScript.
And you can do test coverage (:
Субота, 13 квітня 13 р.
karma configurator
Субота, 13 квітня 13 р.
functional testing
PhantomJS 1.8 + require(‘wd’)A node.js javascript client for webdriver/selenium 2
Субота, 13 квітня 13 р.
Selenium WD
Субота, 13 квітня 13 р.
Thanks!
http://bit.ly/fd-debitoorwanna do hardcore node.js?
Q&A
jshintmocha
chaisinon
rewirenock
localtunneltestacular-karmaphantomjs + wd
Субота, 13 квітня 13 р.