# Fix \`cargo test\` task for tests module in \`lib.rs\`, \`main.rs\`, \`mod.rs\` \(\#25092\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 274e70e81ded9ebdc3db5872f3888f6dbc5ffc92

Requested commit: 274e70e81ded9ebdc3db5872f3888f6dbc5ffc92

Commit: 274e70e81ded9ebdc3db5872f3888f6dbc5ffc92

Tree: e54b99aabc80c84ccea2c34135f99592715bfdb1

Author: Cole Miller

Committer: GitHub

## Message

```
Fix `cargo test` task for tests module in `lib.rs`, `main.rs`, `mod.rs` (#25092)

Closes #19161

Release Notes:
- Fixed not being able to spawn the `cargo test` task for a `tests`
module in `lib.rs`, `main.rs`, or `mod.rs`
```

## Parents

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

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