Enjoy a more productive testing experience with Aqua, a JetBrains IDE for test automation.

A picture’s worth a 1000 tests. Unit testing asserts can be difficult to use. Approval tests simplify this by taking a snapshot of the results, and confirming that they have not changed. In normal unit testing, you say assertEquals(5, person.getAge()). Approvals allow you to do this when the thing that you want to assert is no longer a primitive but a complex object. For example, you can say, Appr
概要 gatlingという負荷試験ツールの結果が見栄え良いとのことで試してみた。 どんなものか ScalaなDSLでテストケースを記載するjmeter的なもの。QuickstartとAdvanced Tutorialを実施するとどういうものかわかるかと。 DSLの独特な所としてはUserとScenarioという概念があり、実際に人がブラウザを操作してる感覚+高級言語で表現できるは良いかと。 例えば「hoge.comの/hoge見た後/fugaを見る」というScenarioのUserを10分間に100User分負荷を発生、という感じで、ユーザがブラウザを操作する振る舞いをDSLにいい感じに表現できる。 実際にはwebアプリは複数のページ遷移で1アクションなこともあるので、このように書けると便利そうね、と。 導入 以下、linuxの場合。 jdk落としてきてインストール Gatling Pro
Home Setup User Guide Customizing Contributing Resources Running tests on an Android emulator or device is slow! Building, deploying, and running the tests often take minutes. That's no way to do TDD. There must be a better way. Robolectric is a framework that brings fast and reliable unit tests to Android. Tests run inside the JVM in seconds. With Robolectric you can write tests like this: @RunWi
Betamax is a tool for mocking external HTTP resources in your tests. The project was inspired by the VCR library for Ruby. This project currently has no maintainer. The ambitious 2.X release turned out to be architectually flawed, difficult to use, and even more difficult to accurately document. 2.X is essentially a failure and has been abandoned. Documentation hosted at http://betamax.software/ i
最近、久しぶりにコードレビューをすることが増えたのですが、UnitTestのコードを見るとヒドイ部分が多く残念な気持ちになることもあります。 原因のひとつとして、プロダクトコードと違いテストの書き方をあまり書き方を明文化してなかったのが悪かったなと思い、とりあえず明文化してみました。 今回は、命名規則とかそのレベルまではいかず「ユニットテストかくあるべし」ってところまでをまとめます。正直、これ守ってくれたらあとは好みの世界もあるしね。 追記: テクニカルな部分も最低限ですがQiitaに記載しました。 qiita.com 追記: もうちょっと大上段の規約に関してもまとめてみました。 koduki.hatenablog.com 前提 ここではユニットテストを関数レベルのテストをJUnitのような自動テストツールで取り扱う場合に限定します。 また、Mavenでビルド時は常にテストを回すことを想定
JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks. @Test public void newArrayListsHaveNoElements() { assertThat(new ArrayList<Integer>().size(), is(0)); } @Test public void sizeReturnsNumberOfElements() { List<Object> instance = new ArrayList<Object>(); instance.add(new Object()); instance.add(new Object()); assertThat(in
JUnit 4 / JUnit Lambda - Campaign Spending Last Published: 2021-02-13 | Version: 4.13.2 JUnit Lambda - Spending Since all the money is going through the books of a company (andrena objects ag), the exact amount for taxes cannot be calculated. We will fill in details and exact amounts for other positions as soon as we have them. What Credit/EUR Debit/EUR Balance/EUR
久しぶりにDbUnitを使おうとおもったらはまりまくった。 環境はeclipse3.4.1上のプロジェクト(古いけどこのときのシステムはこれで統一してたので。。。) Springは2.5.6 1つ目のはまりはコンパイルエラー まずアノテーション@RunWith(SpringJUnit4ClassRunner.class)を追加すると、 型 org.junit.internal.runners.JUnit4ClassRunner を解決できません。 必要な .class ファイルから間接的に参照されています のエラーメッセージ。。。 Springにはいっていたjunit-4.4.jarをクラスパスに追加して解決。 2つ目のはまりトランザクション 初期データをDataSetからCLEAN_INSERTを行っても、テスト実行時は別のトランザクションになってしまいテストができなかった。。。 データ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く