Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test production code but do not test mocks #683

Open
RalfKoban opened this issue Nov 22, 2023 · 0 comments
Open

Test production code but do not test mocks #683

RalfKoban opened this issue Nov 22, 2023 · 0 comments

Comments

@RalfKoban
Copy link
Owner

We should detect unit tests that test mocks but not the real production code.

This could be the case if e.g. the object under test is a mocked one.

The reason is that due to testing the mocks only there is no benefit in having the test as production code is not involved at all (and the production code is the interesting code to do tests on).

@RalfKoban RalfKoban changed the title Do not tests mocks Test production code but do not test mocks Nov 22, 2023
@RalfKoban RalfKoban moved this to Next in MiKo Analyzers Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Next
Development

No branches or pull requests

1 participant