NativeScript / NativeScript/nativescript-cli
tns test android no reachable hosts
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 204
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 8
説明
Environment
- CLI: 6.2.2
- Cross-platform modules: 6.2.1
- Android Runtime: 6.2.0
- iOS Runtime: n/a
- Plugin(s):
Describe the bug && Reproduction
I'm experiencing the same issue outlined in #4119.
Run tns test android with usesCleartextTraffic=false, the test app shows "no reachable hosts". Setting usesCleartextTraffic=true allows the tests to execute.
I don't want to set usesCleartextTraffic to true with my production application, so I'm wondering how I get around this.
Expected behavior
I expect the tests to run 😄
Additional context
This was supposed to be resolved with this pull request. I see that there is an AndroidManifest.xml file in those changes, and I'm wondering if that is supposed to override the settings in my application's manifest
https://github.com/NativeScript/nativescript-unit-test-runner/pull/30
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず tns test android と usesCleartextTraffic=false を使って問題を再現し、次に pull request #30 で参照されている AndroidManifest.xml の変更を調査して、アプリケーションのマニフェストの動作と比較します。usesCleartextTraffic=true を本番アプリケーションで必要とせずに Android テストが実行できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, javascript
- 領域
- cli, mobile-dev, testing-qa
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100