-
Notifications
You must be signed in to change notification settings - Fork 21
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
add cargo bless functionalty #1091
Comments
maker seems to make it work with a wrapper around uitests. |
Thank you very much for your feedback. I will look into this. |
also a better diff when running the test would be so much appreciated I opened this Manishearth/compiletest-rs#284 but @Manishearth mentioned that the crate is not actively maintained so no luck with this. |
Do you know if migrating |
doesn't seem to allow it, maybe could be added but the default one is better than |
Generally speaking, do you know how difficult it is for a package to switch from using |
no idea, but I can give it a try. |
That would help me out a lot! |
will try this next week @smoelius |
Thanks! |
i tried something like this let mut rustc_flags: Vec<OsString> = config.rustc_flags.iter().map(OsString::from).collect();
rustc_flags.push(OsString::from("--emit=metadata"));
if cfg!(feature = "deny_warnings") {
rustc_flags.push(OsString::from("-Dwarnings"));
}
rustc_flags.push(OsString::from("-Zui-testing"));
let program = ui_test::CommandBuilder {
args: rustc_flags,
..ui_test::CommandBuilder::cmd(driver.to_path_buf())
};
let config = ui_test::Config {
program,
..ui_test::Config::rustc(src_base.to_path_buf())
};
ui_test::run_tests(config).unwrap(); instead of compile_tests, issue is the args order doesn't work with driver, it's expecting the file path to be first. |
Thank you very much for looking into this.
I'm not quite following. Could you post the error message? |
this is how it's passing the command:
the issue is |
Is it worth opening a WIP PR for what you have done? |
probably not, it is just literally that code I posted above. |
I have been using
dylint
quite a lot, thecargo bless
functionality would save so much repetitive work copying and pasting.The text was updated successfully, but these errors were encountered: