NativeScript / NativeScript/nativescript-cli
tns test android no reachable hosts
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.1k
- Forks
- 204
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 8
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das Problem mit tns test android und usesCleartextTraffic=false zu reproduzieren. Untersuche anschließend die in Pull Request #30 referenzierten Änderungen an AndroidManifest.xml und vergleiche sie mit dem Manifest-Verhalten der Anwendung. Die Aufgabe ist abgeschlossen, wenn die Android-Tests ausgeführt werden, ohne dass usesCleartextTraffic=true in der Produktionsanwendung erforderlich ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, javascript
- Bereich
- cli, mobile-dev, testing-qa
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100