NativeScript / NativeScript/nativescript-cli

Cannot run Karma Jasmine test even for HelloWorld

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

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

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

説明

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
✔ Component nativescript has 8.0.1 version and is up to date.
ns doctor shows all green check marks

Android Runtime: 4.1.3
iOS Runtime: 12.4
XCode Version: 12.4
Plugin(s):
Describe the bug
Cannot run ns test ios or ns test android even it's just the HelloWord template directly from NativeScript WITHOUT one line of code added.

To Reproduce

create a project call HelloWorld ns create HelloWorld
'cd HelloWorld'
ns test init and pick Jasmine
add the following steps to fix some known issues

  • npm install karma-webpack@next --save-dev
  • In karma.conf.js, add webpack to frameworks section frameworks: ['jasmine', 'webpack']
  • In tsconfig.json, add src/tests//*.ts in include section "include": ["src/tests//.ts", "src/**/.ios.ts", "src/**/*.android.ts"],
    'ns test ios' or ns test android

Expected behavior
Test should run and result display on the console

Sample project
https://github.com/cupidchan/HelloWorld

Additional context

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

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

はじめの一歩

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

調査の方向性

リンクされているHelloWorldサンプルを使って、まず ns test iosns test android を再現します。karma.conf.jstsconfig.json を読み、報告されている Jasmine、webpack、テストファイルの設定も確認して、失敗時の出力を記録します。HelloWorldテンプレートがKarma Jasmineテストを実行し、結果をコンソールに表示すれば完了です。

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

評価

技術スタック
javascript
領域
cli, mobile-dev, testing-qa
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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