-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
integration tests' dependencies do not have a dedicated manifest section #12717
Comments
Could you provide an example scenario? I'm not too sure what the problem is you are trying to highlight. |
When I write some unit tests, and I want to use test-only dependencies such as Now suppose I want to write an integration test that uses |
They should be compiled with dev-dependencies. Do you have a reproduction case? |
I was attempting to reproduce this by writing a test in the cargo repo, but you are right - they seem to be getting the dev-dependencies. This was PEBKAC. |
The actual issue was that It would be good to have a separate section in the manifest for the dependencies of integration tests for this reason. |
I'm assuming the |
Not only that, it will also trigger on the main crate if the dev-dependency isn't used in any unit tests. |
Is there any reason we shouldn't close in favor of #1982? |
Seems reasonable to do so. |
Problem
integration tests are a useful concept, but in cases where additional test-only 3rd party crates are needed, they are unusable because they don't get to use dev-dependencies and do not have their own dependency section in the manifest.
Proposed Solution
The simplest solution would be to link dev-dependencies into integration tests.
Notes
No response
The text was updated successfully, but these errors were encountered: