Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Mocha ja QUnit
Search
TomTer
October 05, 2014
Programming
0
49
Mocha ja QUnit
Lalalala. Slides for our course: modern-web-tools-with-node-js-book
TomTer
October 05, 2014
Tweet
Share
Other Decks in Programming
See All in Programming
Introducing Kotlin Multiplatform in an existing mobile app - Workshop Edition | AndroidMakers Paris
prof18
0
170
Apache Hive 4 on Treasure Data
ryukobayashi
1
460
Ruby on Fails - effective error handling with Rails conventions
talyssonoc
0
210
業務ツールとして使うPostman
msys75
0
120
Try creating your own orderedmap
kazamori
1
270
Powerfully Typed TypeScript
euxn23
1
390
PHPはいつから死んでいるかの調査
chiroruxx
2
430
Criando a Woovi em uma semana
daniloab
0
110
Tailwind CSSを本気でカスタマイズする方法
fsubal
15
5.6k
パフォーマンスを求めてDBに機能を寄せる戦略
aoyagikouhei
0
120
Snowflakeで眠ったデータを起こそう!
estie
0
160
AmperとFleetを使ったAndroidアプリ
yoppie
0
290
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
34
6.1k
Docker and Python
trallard
35
2.7k
Optimising Largest Contentful Paint
csswizardry
13
2.4k
VelocityConf: Rendering Performance Case Studies
addyosmani
321
23k
Design by the Numbers
sachag
274
18k
The World Runs on Bad Software
bkeepers
PRO
61
6.7k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
21
2k
Designing for humans not robots
tammielis
247
25k
How GitHub (no longer) Works
holman
305
140k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
245
20k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
501
140k
Faster Mobile Websites
deanohume
300
30k
Transcript
Mocha ja Qunit Toomas Tero
Sisältö Mocha Qunit Bye-bye
Mocha oJS testing framework running on NodeJS and a browser.
oAnalogues: JUnit for Java, PHPUnit, PyUnit etc… oCan be tested both sync and async code
Test program n.1 A very “complex” synchronous class we want
to import and test using Mocha
Actual testing program n.1 Class is imported, new instanced made
and lets eat test that thing.
Results n.1 Everything went as we wanted
Test program n.2 Oh, we forgot to fry it first.
Lets do it!
Test program n.2 Lalalalallalala. No one reads this text I
said….
Results n.2 Das ist fantastisch!
Offtopic - My favorite part in NodeJS… (of course without
using ”async” module)
QUnit o JS unit testing framework. o Only in browsers.
o From JQuery creators.
QUnit result Everything is ok.