NativeScript / NativeScript/nativescript-cli

Running tns test android does not detect tests and is stuck in `test: loading; `

Aperta
#5,607 3 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

os: android unit testing
Lingua principale
JavaScript
Stelle
1.1k
Fork
204
Merge medio
1g 9h
PR unite (30g)
8

Descrizione

Environment

  • CLI: 8.1.4
  • karma: 6.3.7
  • karma-jasmine: 4.0.1
  • karma-webpack: 5.0.0
  • karma-nativescript-launcher: ~2.9.0

Describe the bug

I initalized tests using tns test init using jasmine. After running tns test android, in the browser the header shows test: loading and it doesn't appear to load any test files in the network tab. The mobile app that's launched on my emulator shows no tests. I did not make any modifications to the version of the dependencies or to the generated karma.conf.js. There were no errors in the logs.

To Reproduce

Run tns test init and select jasmine
Run tns test android, it launches the app with no tests displayed. In the browser, it displays test:loading

Expected behavior
My unit tests to be displayed and their status.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il problema con tns test init, selezionando Jasmine ed eseguendo tns test android; esamina il karma.conf.js generato e l’attività di rete del browser durante l’avvio dell’emulatore. Confronta il flusso di caricamento dei test previsto con lo stato osservato test: loading e considera il problema risolto quando i test unitari inizializzati compaiono nel browser e nell’emulatore con il relativo stato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
android, javascript
Ambito
cli, mobile, testing
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.