Hi there! This is Property-Based Testing with PropEr, Erlang, and Elixir, a book on Property-Based Testing. It's pretty much the friendliest intro to property testing you'll find. The book teaches you how to automatically generate test cases, test stateful programs, and change how you design your software for more principled and reliable approaches. You will be able to better explore the problem s
In this blog post, we’ll talk about property-based testing and sample data generation. We’ll cover what these are, why we want them in Elixir, and what are are plans for the future. If you want to use the features discussed here or you want to read more formal documentation, head over to stream_data, which is a library that currently provides both features (albeit in beta form) and which is where
common_test で spec を使う 誰でも一度は作るというMySQLクライアントですが、いざ作ってみると困るのがテストです。本家のオプションを網羅する気はもちろんないですが、バージョン毎の分岐はやらないわけにはいきません。とりあえず 5.[5-7] で、それぞれ機能単位のテストを、一度に済ます、を目標としました、が、 さて、どうしたものかと。 ここは "多機能で大抵できる"、"覚えたら便利" という噂のcommon_testを使うトコ、ですよね? まぁ、きっかけはともかく、状況としてはよくある話でしょうし、覚えているうちに書き留めておこうと思います。 ※ ただし erlang-17.4 では動きません。orz 流れとしては、まず前提として appで変数の初期値を設定し、 configでそれらを上書く ようアプリを作ります。その上で テスト毎にct_configを作り、 それをsp
More Thorough TestingIf you experience quality problems, despite all your test effort and test automation, then the next step is automatic test case generation. Instead of having humans write test cases, we use algorithms to generate good test cases for you. This results in thousands of relevant test cases that hit corners in your software you didn’t even know exist. You can never write a test for
While developing a new GraphQL API, I thought about the best way to actually test GraphQL endpoints when using Phoenix. In the end, the test coverage is similar to a controller test. GraphQL APIs have a different structure compared to REST APIs. Therefore, we will build some helpers to have an easy way to test our queries and mutations. Example Schema For our example, we’ll assume to have the foll
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く