Transcript
Page 1: Your project tested #nodejs

your project testednodejsby @edjafarov

Субота, 13 квітня 13 р.

Page 2: Your project tested #nodejs

structure

codestylecheck

unitfrontend

unitbackend

integr.backend

functional

Субота, 13 квітня 13 р.

Page 3: Your project tested #nodejs

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

style check

jshintsame as jslint but you can ignore anythingand test YOUR code style

Субота, 13 квітня 13 р.

Page 5: Your project tested #nodejs

jshint

Субота, 13 квітня 13 р.

Page 6: Your project tested #nodejs

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

mocha/chai

Субота, 13 квітня 13 р.

Page 8: Your project tested #nodejs

sinon spy

Субота, 13 квітня 13 р.

Page 9: Your project tested #nodejs

sinon stub

Субота, 13 квітня 13 р.

Page 10: Your project tested #nodejs

rewire

Субота, 13 квітня 13 р.

Page 11: Your project tested #nodejs

integration testing

nockHTTP mocking and expectations library

localtunnelexposes your localhost to the world

Субота, 13 квітня 13 р.

Page 12: Your project tested #nodejs

nock

Субота, 13 квітня 13 р.

Page 13: Your project tested #nodejs

localtunnel

Субота, 13 квітня 13 р.

Page 14: Your project tested #nodejs

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

karma configurator

Субота, 13 квітня 13 р.

Page 16: Your project tested #nodejs

functional testing

PhantomJS 1.8 + require(‘wd’)A node.js javascript client for webdriver/selenium 2

Субота, 13 квітня 13 р.

Page 17: Your project tested #nodejs

Selenium WD

Субота, 13 квітня 13 р.

Page 18: Your project tested #nodejs

Thanks!

http://bit.ly/fd-debitoorwanna do hardcore node.js?

Q&A

jshintmocha

chaisinon

rewirenock

localtunneltestacular-karmaphantomjs + wd

Субота, 13 квітня 13 р.


Top Related