タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

testingとmrubyに関するYaSuYuKiのブックマーク (2)

  • Testing Casual Talks 2 で発表してきた - HsbtDiary(2015-05-25)

    ■ Testing Casual Talks 2 で発表してきた @ikasam_a さんからあんちぽくん経由で登壇依頼が来たのでちょっと前に構築した ngx_mruby のテスト基盤の話をしてきました。 Testing Casual ということで今回の話はテストのことしか話せなく、そもそもの問題意識であるとか、ngx_mruby の魅力の部分を端折ってしまったので補足します。 nginx.conf のテストをするために ngx_mruby を入れたわけではなく、そもそも rails や sinatra のようなアプリケーション・サーバーでやっていることを nginx のレイヤでやることが最初の目的 ngx_mruby でやるロジックは、非常にテスト向き(コンテキストの再現がやりやすい)ということに気がついたので、テストをする方法を考えて実現した 実現してみたら、だいぶいける感がしてきたの

    Testing Casual Talks 2 で発表してきた - HsbtDiary(2015-05-25)
  • How to test code with mruby

    This document discusses testing code written for mruby, a lightweight Ruby implementation. It proposes using the mruby runtime itself to test code, rather than Ruby, by using the mruby-mtest library. This allows testing mruby code directly using the same binaries and libraries as production. Sample code shows how to structure tests and set up a test runner to execute tests against the mruby binary

    How to test code with mruby
    YaSuYuKi
    YaSuYuKi 2015/05/26
    mrubyからテストを起動することで得られるもう一つの重要な利点に、mrubyを経由して呼び出しているC/C++のコードのテストをmrubyで書けることがある。かなり役立っていた(過去形なのは今ビルドできずテスト出来てないから)
  • 1