feature request: fail if no test functions are run
オープン
- 主要言語
- JavaScript
- スター
- 1.9k
- フォーク
- 359
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
If you run nodeunit on an empty directory, it just prints
OK: 0 assertions
and exits successfully.
It would be nice if this exited with an error status code by default. That way, the build will fail if you move the tests and forget to update the nodeunit invocation.
(The workaround is to use a custom reporter)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
空のディレクトリでアサーションが0件になった場合の nodeunit の呼び出しとデフォルト reporter の動作を追跡することから始めます。カスタム reporter の workaround がどのように失敗を判定しているかを確認し、次にデフォルト動作のカバレッジを追加して、テストなしの実行が失敗扱いで終了する一方、通常のテスト実行は引き続き成功することを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- cli, testing
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100