NativeScript / NativeScript/nativescript-cli
Add ability to test UI widgets
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 204
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 8
説明
From @PeterStaev on April 23, 2016 9:57
From what I see currently it is not possible to test UI widgets. I tried to parse a widget with builder.parse or just create a new object inside the test and set up properties/bindings but both approaches do not initialize the widget fully (i.e. on android the _createUI function is not called, on iOS onLoaded event is never fired). Would be great if we can add tests for UI widgets (especially for people developing UI plugins :))
Copied from original issue: NativeScript/nativescript-unit-test-runner#9
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、builder.parse とウィジェットの直接作成に関するユニットテストの処理を調査し、レポートで言及されている Android の _createUI パスと iOS の onLoaded イベントに焦点を当てます。テストでウィジェットのライフサイクル初期化をどのように実行すべきかを判断し、UI ウィジェットをインスタンス化でき、両プラットフォームでプラットフォーム固有の初期化をテストできるようになった時点で作業完了とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- mobile
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100