# rust: Add runnable icon for \`\#\[cfg\(test\)\] mod tests\` \(\#12017\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/1e5389a2be36218b78439ebb1eddbac1bd256670)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 1e5389a2be36218b78439ebb1eddbac1bd256670

Requested commit: 1e5389a2be36218b78439ebb1eddbac1bd256670

Commit: 1e5389a2be36218b78439ebb1eddbac1bd256670

Tree: 6f25b824cb3ff2d746fd10c783059c1116bf7001

Author: Remco Smits

Committer: GitHub

## Message

```
rust: Add runnable icon for `#[cfg(test)] mod tests` (#12017)

This allows you to run all the tests inside the `mod tests` block. 
Fixes #11967.

<img width="366" alt="Screenshot 2024-05-18 at 16 07 32"
src="https://github.com/zed-industries/zed/assets/62463826/01fc378c-1546-421d-8250-fe0227c1e5a0">

<img width="874" alt="Screenshot 2024-05-18 at 16 37 21"
src="https://github.com/zed-industries/zed/assets/62463826/4a880b91-df84-4917-a16e-5d5fe20e22ac">

Release Notes:

- Added runnable icon for Rust `#[cfg(test)] mod tests` blocks
([#11967](https://github.com/zed-industries/zed/issues/11967)).
```

## Parents

- [2177ee8cc0419afa85fcc4791c453e077506cf0b](https://git.cafe/gitcafe/zed/commit/2177ee8cc0419afa85fcc4791c453e077506cf0b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/1e5389a2be36218b78439ebb1eddbac1bd256670?format=markdown)
