angular / angular/angular-cli

Schematics testing infrastructure: compare Trees, copy Trees

オープン
#12,707 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: @angular-devkit/schematics feature feature: insufficient votes
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
14時間 23分
マージ済み PR(30日)
162

説明

### Bug Report or Feature Request (mark with an `x`)
```
- [ ] bug report -> please search issues before submitting
- [x] feature request
```

### Desired functionality

When unit testing a schematic or a rule, I have sometimes found that it would be convenient if I could take two trees and compare them. Or at least ask whether the two trees are equivalent.

As part of this, it would also be convenient if there was some Tree-copying function - specifically for checking that a Tree has _not_ changed after some Rule call, but possibly for other cases as well.

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

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

調査の方向性

まず、Schematics のテストインフラストラクチャと、issue で参照されている Tree および Rule API を調べます。Tree の同等性とコピーがどのように動作すべきかを確認し、その後、同等の Tree が正常に比較されること、および Rule の呼び出し後にコピーされた Tree の変更を確認できることを示すカバレッジを追加します。

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

評価

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

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

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