A test with an empty body is no test
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 領域
- testing-qa
調査の方向性
Start by reading the implementation changed for #503 and the tests for tests-run in the project; the issue names no file paths, so first locate how framework test declarations are detected. Add cases for empty Rust, JUnit, gtest, and pytest test bodies, then verify each is rejected while a test containing one statement still passes. Keep empty dune stanzas and busted specs out of scope.
索引モデルが issue の本文から書いたものです。
説明
Problem
#503 made CTest no-op commands (true, echo, cmake -E true) count for nothing. An empty test function still passes tests-run:
- Rust
#[test] fn t() {} - JUnit
@Test void t() {} - gtest
TEST(A, B) {} - pytest
def test_t(): pass
Expected
A policy table, per framework, of how a test function is declared. A unit whose only tests have empty bodies has no tests. Empty dune stanzas, busted specs and the like stay with coverage reach and #459, as #480 said.
Done when
Each case above fails tests-run, and a test with one statement still passes.
Split from #480. Checked against main at 4b4dbb6c on 2026-12-03: the cases above were reproduced with small fixtures or found in the code.
🤖 Generated with Claude Code
- 主要言語
- Python
- スター
- 4
- フォーク
- 1
- 平均マージ
- 6時間 31分
- マージ済み PR(30日)
- 238
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cpp-best-practices/project_validator のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
cpp-best-practices/project_validator#609 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
cpp-best-practices/project_validator#449 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
cpp-best-practices/project_validator#622 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
cpp-best-practices/project_validator#621 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
cpp-best-practices/project_validator#619 ·
メンテナーはふだん 1 日以内に返信
cpp-best-practices/project_validator の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
fossasia/eventyay-exhibition#465 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
area/webapp comp/desktop P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NousResearch/hermes-agent#163341 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
smart-village-solutions/smart-speech-flow#765 ·
メンテナーはふだん 1 日以内に返信
-
bot-triaged module: bfloat16 module: cuda module: half module: numerical-stability triage review
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信