android / android/testing-samples

Custom Listener gets a null parameter on the testRunStarted() method

オープン
#106 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
not sample issue
主要言語
Java
スター
9.3k
フォーク
3.6k
PR マージ指標
30日以内にマージされた PR はありません

説明

Repro code @ https://github.com/googlesamples/android-testing/pull/105

I basically tried two things:

1) I opened the project in Android Studio and setup the listener by adding:
`-e listener com.example.android.testing.androidjunitrunnersample.suite.MyListener`
If I breakpoint on `super.testRunStarted(description);` I get that description is null when it shouldn't.

2) I have also tried using the cmd line by running `./gradlew connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.listener=com.example.android.testing.androidjunitrunnersample.suite.MyListener`

testRunStarted() is still called with description == null.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

pull request 105 の再現コードと、issue で指定されている MyListener エントリポイントから始めます。listener 引数を指定して connectedAndroidTest を実行し、次に testRunStarted() コールバックを追跡して、受け取った description と期待されるテスト実行メタデータを比較します。Android Studio とコマンドラインでの実行の両方で、カスタム listener が non-null の description を受け取れば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, java
領域
mobile, testing
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。