NativeScript / NativeScript/nativescript-cli
Running tns test android does not detect tests and is stuck in `test: loading; `
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.1k
- Forks
- 204
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 8
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza reproduciendo el problema con tns test init, seleccionando Jasmine y ejecutando tns test android; inspecciona el karma.conf.js generado y la actividad de red del navegador mientras se inicia el emulador. Compara el flujo esperado de carga de las pruebas con el estado observado test: loading, y considera que el problema está resuelto cuando las pruebas unitarias inicializadas aparezcan en el navegador y en el emulador con su estado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- android, javascript
- Área
- cli, mobile, testing
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100