Update Spec-Tests framework to support test cases marked as invalid

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript
領域
testing-qa

調査の方向性

まず、無効としてマークされた XML 式を扱う Spec-Tests の箇所を見つけ、skip-list.txt を確認します。既存の例から、runtime-invalid のケースが例外または null 結果を期待すべきかを判断し、semantic-invalid のケースが翻訳されないようにします。両方の無効な形式が skip list に依存せずに framework で処理されれば完了です。

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

説明

Some test cases are marked as invalid. For example:

<test name="SuccessorOverflowDt">
  <expression invalid="true">successor of DateTime(9999, 12, 31, 23, 59, 59, 999)</expression>
  <!-- EXPECT: The result of the successor operation exceeds the maximum value allowed for the type -->
</test>

Since these don't have an output, our tests basically treat them like a no-op. We should consider if the correct behavior is to expect an exception (probably?) or a null result (maybe).

Some tests are marked as semantically invalid, like this one:

<test name="TimeUpperBoundHours">
  <expression invalid="semantic">@T24:59:59.999</expression>
  <!-- Translation Error: Invalid date-time input (T24:59:59.999). Use ISO 8601 date time representation (yyyy-MM-ddThh:mm:ss.mmmmZhh:mm). -->
</test>

We currently have to put these in the skip-list.txt file because the translator errors cause issues. But we should try to avoid translating these ones at all, if possible.

主要言語
JavaScript
スター
86
フォーク
40
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

cqframework/cql-execution のほかの issue

cqframework/cql-execution の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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