NativeScript / NativeScript/nativescript-cli

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

オープン
#5,607 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

os: android unit testing
主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
8

説明

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.

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず tns test init を使用して問題を再現し、Jasmine を選択して tns test android を実行します。エミュレーターの起動中に、生成された karma.conf.js とブラウザーのネットワークアクティビティを調べます。想定されるテスト読み込みフローと、観測された状態 test: loading を比較し、初期化されたユニットテストがステータスとともにブラウザーとエミュレーターに表示されれば、問題は完了したと見なします。

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

評価

技術スタック
android, javascript
領域
cli, mobile, testing
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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