Your SlideShare is downloading. ×
0
Test::QUnit - QUnit testviaprove<br />YAPC 2010<br />ID: @zentooo<br />
JSのテストをどげんかせんとくん<br />
Web UI<br />CLI<br /><ul><li>JSpec
 Jasmine</li></ul>…<br /><ul><li> YUI Test
QUnit
JSUnit</li></ul>…<br />
JS test with Web UI<br />ブラウザ開くのがめんどくさい<br />ブラウザ開くのがめんどくさい<br />ブラウザ開くのがめんどくさい<br />(Open browser manually sucks!)<br />
JS test with CLI<br />ブラウザのエミュレーションって結局どうなん?<br />env.jsとか結構いけるっぽい<br />(It depends on browser emulation.)<br />
Integrated<br />JSTestDriver (http://code.google.com/p/js-test-driver/)<br />(Looks good, run from IDE and CUI,<br />cross...
             /)            ///)           /,.=゙''"/    /     if ,.r='"-‐'つ____   こまけぇこたぁいいんだよ!!   /      /   _,.-‐'~/⌒  ⌒\...
要はCLIからブラウザ上のテストが<br />叩ければそれでいいんだろ?<br />(I want to run my tests with CLI, <br />but on my browser. That’s all.)<br />
そんでもってテスト結果とか<br />集計されれば言う事ないんだろ?<br />(Sexy formatted test result summary<br />gives me extacy.)<br />
それTest::Qunit (ry<br />(I love you.)<br />
Test::QUnit<br />1. Invoke test with MozRepl<br />2. Get JS test results with MozRepl::RemoteObject,<br />then convert it ...
use Test::QUnit;<br />qunit_remote(“http://path/to/qunit/test.html”)<br />     => run QUnit test on remote server<br />qun...
Upcoming SlideShare
Loading in...5
×

Test::QUnit ( YAPC::Asia 2010 zentooo )

1,194

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,194
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Test::QUnit ( YAPC::Asia 2010 zentooo )"

  1. 1. Test::QUnit - QUnit testviaprove<br />YAPC 2010<br />ID: @zentooo<br />
  2. 2. JSのテストをどげんかせんとくん<br />
  3. 3. Web UI<br />CLI<br /><ul><li>JSpec
  4. 4. Jasmine</li></ul>…<br /><ul><li> YUI Test
  5. 5. QUnit
  6. 6. JSUnit</li></ul>…<br />
  7. 7. JS test with Web UI<br />ブラウザ開くのがめんどくさい<br />ブラウザ開くのがめんどくさい<br />ブラウザ開くのがめんどくさい<br />(Open browser manually sucks!)<br />
  8. 8. JS test with CLI<br />ブラウザのエミュレーションって結局どうなん?<br />env.jsとか結構いけるっぽい<br />(It depends on browser emulation.)<br />
  9. 9. Integrated<br />JSTestDriver (http://code.google.com/p/js-test-driver/)<br />(Looks good, run from IDE and CUI,<br />cross-browser)<br />
  10. 10.              /)            ///)           /,.=゙''"/    /     if ,.r='"-‐'つ____   こまけぇこたぁいいんだよ!!   /      /   _,.-‐'~/⌒  ⌒\     /   ,i   ,二ニ⊃( ●). (●)\    /    ノ    il゙フ::::::⌒(__人__)⌒::::: \       ,イ「ト、  ,!,!|     |r┬-|     |      / iトヾヽ_/ィ"\      `ー'´     / <br />(Throw away minor details!)<br />
  11. 11. 要はCLIからブラウザ上のテストが<br />叩ければそれでいいんだろ?<br />(I want to run my tests with CLI, <br />but on my browser. That’s all.)<br />
  12. 12. そんでもってテスト結果とか<br />集計されれば言う事ないんだろ?<br />(Sexy formatted test result summary<br />gives me extacy.)<br />
  13. 13. それTest::Qunit (ry<br />(I love you.)<br />
  14. 14. Test::QUnit<br />1. Invoke test with MozRepl<br />2. Get JS test results with MozRepl::RemoteObject,<br />then convert it to TAP format<br />
  15. 15. use Test::QUnit;<br />qunit_remote(“http://path/to/qunit/test.html”)<br /> => run QUnit test on remote server<br />qunit_local(“/path/to/qunit.test.html”)<br /> => run QUnit test on local Plack server<br />
  16. 16. Demo?<br />
  17. 17. On github<br />http://github.com/zentooo/p5-test-qunit<br />
  18. 18. Thank you!<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×