rust-lang / rust-lang/rust-clippy

Empty Test Lint

Open
#17,488 2 comments 0 reactions 1 assignee View on GitHub

@willwang-io is already working on this.

Since Aug 21, 2026.

A-lint
Dominant language
Rust
Stars
13.5k
Forks
2.2k
Avg merge
2d 10h
Merged PRs (30d)
32

Description

What it does

This lint should suggest removing empty test functions.

Advantage

By applying this lint it would make source code cleaner / shorted by removing tests that do nothing.

Drawbacks

No response

Example
#[test]   
fn my_empty_test() {

}

Could be removed

Comparison with existing lints

To my knowledge this lint doesn't exist yet.

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.