Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Robolectric でテストするときに、アプリケーション コードで作成された Log.d() 出力を表示するにはどうすればよいですか? 現在、バージョン 2.4 を使用しています。
私は最近、(Android Studio との統合が不足しているため) 次のテスト コードを頻繁に実行しています。
System.out.println("TEST");
そして実行gradleします:
gradle
gradle testDebug -i
これを VM 引数として実行構成 (Android Studio 内) に追加します。
-Drobolectric.logging=stdout