oli-obk / ui_test

A test framework for testing rustc diagnostics output
27 stars 25 forks source link

Tests should have access to dev-dependencies in Cargo.toml #282

Open tmandry opened 1 month ago

tmandry commented 1 month ago

Currently they only have access to regular dependencies.

oli-obk commented 1 month ago

You can specify a custom Cargo.toml instead of reusing the one from your project. We rebuild it from scratch anyway.

I'm not sure how to get the dev dependencies, and it would clash with cross testing anyway

tmandry commented 1 month ago

Yeah, I did end up specifying a Cargo.toml, it's just awkward because you have to make a stub lib.rs.

I was hoping there would be an easy way of doing this. Feel free to close if not planned.

oli-obk commented 1 month ago

I want to be able to specify dependencies in the ui test .rs file, as the separate Cargo.toml was always a hack out of laziness