Upgrade to Pro — share decks privately, control downloads, hide ads and more …

xctoolで爆速テスト

Yusuke Mito
December 11, 2013

 xctoolで爆速テスト

xctoolの-parallelizeオプションを使うとテストを分割して並列実行できるようになるよというお話です。

Yusuke Mito

December 11, 2013
Tweet

More Decks by Yusuke Mito

Other Decks in Technology

Transcript

  1. xctoolͰര଎ςετ
    ਫށ༞հ@y_310

    View full-size slide

  2. ࣗݾ঺հ
    COOKPADͷRubyΤϯδχΞͰͨ͠

    View full-size slide

  3. ઌि͔ΒiOSΤϯδχΞʹͳΓ·ͨ͠

    View full-size slide

  4. xctool
    GBDFCPPL੡
    YDPEFCVJMEΛஔ͖׵͑Δπʔϧ
    9DPEFͰ࣮ߦ͢Δςετͱಉ͡ςετΛ࣮ߦͰ͖Δͷ͕ചΓ

    View full-size slide

  5. 9DPEFʹͳ͔ͬͯΒYDPEFCVJME͕վળ
    ී௨ʹίϚϯυϥΠϯͰςετ࣮ߦ͕Ͱ͖ΔΑ͏ʹͳͬͨͷ
    ͰՁ஋͕ബΕͭͭ͋Δʜ

    View full-size slide

  6. ͕ɺ·ͩxctool ಠࣗͷՁ஋͕͋Γ·͢

    View full-size slide

  7. -parallelize

    View full-size slide

  8. ฒྻ࣮ߦΦϓγϣϯ

    View full-size slide

  9. ࣮ߦ݁Ռ
    ·ͱ΋ʹςετ͕௨ΔϥΠϒϥϦ͕ͳ͔ͳ͔ݟ͔ͭΒͳ͔ͬͨͷͰxctoolࣗମͷςετΛ࣮ߦͯ͠Έ·ͨ͠

    View full-size slide

  10. xctool -workspace xctool.xcworkspace -scheme xctool run-tests \
    -parallelize -logicTestBucketSize 1
    xctool -workspace xctool.xcworkspace -scheme xctool run-tests
    3x faster !!
    Before
    After

    View full-size slide