Smoke testing core features
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
既存のクライアントヘルパーインターフェース(client.CreateRoom を含む)と、それを使用する Complement テストから始めます。提案されているログイン済みユーザー/トークン、ライブ更新、およびルームのインターフェースを、matrix-authentication-service、sliding-sync、MSC4014 のシナリオと比較します。障害モードとスコープについて合意した、定義済みのスモークテストのアプローチが確立されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Matrix has many moving parts. Tests typically only care about one single moving part at a time e.g send a message, create a room, upload OTKs. The setup code that happens to get to the point where we can test that moving part is for the most part, boilerplate. Complement has to date provided helper functions in client to do this sort of thing, failing the test if the boilerplate fails e.g client.CreateRoom. However, this then fixes the test into a certain way to setup the test. This is "okay" in that it is clear what is happening, but it limits the ability to do smoke tests:
smoke testing is preliminary testing or sanity testing to reveal simple failures severe enough to, for example, reject a prospective software release. Smoke tests are a subset of test cases that cover the most important functionality of a component or system, used to aid assessment of whether main functions of the software appear to work correctly.
There are several projects which would benefit from smoke testing:
- matrix-authentication-service - all tests could start by logging into MAS and getting MAS tokens before checking basic functionality (the tests) work.
- sliding-sync - all tests could use sliding sync APIs to consume live data rather than mandating sync v2.
- MSC4014 pseudo IDs - all tests could be made as pseudo ID rooms which would otherwise then function the same as a normal room.
These could "reasonably" be split into 3 interfaces:
- give me a logged in user and access token.
- give me live updates.
- give me a room.
There may be more. Smoke testing in this way is error-prone. Some tests will fail due to this setup in flakey ways, e.g:
- The MAS token expires.
- The sliding sync proxy didn't get the event, or the API doesn't expose the data you want to see in the test.
- The room version behaves in a subtley different way.
However, there is real value in being able to run a sanity check like this, even if it isn't fully reliable (read: likely not in CI).
- 主要言語
- Go
- スター
- 99
- フォーク
- 72
- 平均マージ
- 3日 5時間
- マージ済み PR(30日)
- 9
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
matrix-org/complement のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
matrix-org/complement#900 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
New tests for MSC4354 Sticky Events対応中かも @reivilibre が 25 日前に担当しました。 オープン
matrix-org/complement#925 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
matrix-org/complement#901 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
matrix-org/complement#899 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 56/100
matrix-org/complement#898 ·
メンテナーはふだん 1 日以内に返信
matrix-org/complement の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
dataiku/kiji-proxy#635 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
hyperledger-firefly/signer#126 ·
-
agent-review-finding chore
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
jordansmall/spindrift#5748 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
Resource links written as host:port without a scheme are broken対応中かも @RaphaelFakhri が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信