Skip to content

feat: add ignore-test-warnings config option to suppress test/doctest warnings#474

Open
declanvk wants to merge 1 commit intoBoshen:mainfrom
declanvk:issue-468-no-test-warning-opt-out
Open

feat: add ignore-test-warnings config option to suppress test/doctest warnings#474
declanvk wants to merge 1 commit intoBoshen:mainfrom
declanvk:issue-468-no-test-warning-opt-out

Conversation

@declanvk
Copy link
Copy Markdown

Adds ignore-test-warnings = true to [package.metadata.cargo-shear]
or [workspace.metadata.cargo-shear] to opt out of
shear/test_enabled_without_tests and
shear/doctest_enabled_without_doctests warnings without having to set
test = false / doctest = false in Cargo.toml.

Documents the new option in the README under the Configuration section.

Closes #468

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

…st warnings

Adds `ignore-test-warnings = true` to `[package.metadata.cargo-shear]`
or `[workspace.metadata.cargo-shear]` to opt out of
`shear/test_enabled_without_tests` and
`shear/doctest_enabled_without_doctests` warnings without having to set
`test = false` / `doctest = false` in Cargo.toml.

Documents the new option in the README under the Configuration section.

Closes Boshen#468

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@declanvk
Copy link
Copy Markdown
Author

Hello, thanks for developing cargo-shear!

We're using it at my job and ran into the issues mentioned in #468 when one of our developers added some unit tests and then those didn't run. They figured it out pretty quick, but I thought it might be better to try and contribute this config so we could disable the warnings and still keep a clean CI.

Thanks again!

@Boshen Boshen self-assigned this Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opt out of "no test" warning

2 participants