-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
libtest-mimic
test failure not recognised
#836
Comments
Hi there, thanks for the report! I don't seem to be able to reproduce this issue with datatest-stable, with:
Could you provide a minimal reproducible example? |
Hm, it seems to require using Example: use libtest_mimic::{Arguments, Failed, Trial};
fn main() -> anyhow::Result<()> {
let args = Arguments::from_args();
let tests = vec![
Trial::test("example.txt", erroring_test).with_kind("parse")
];
libtest_mimic::run(&args, tests).exit();
}
fn erroring_test() -> Result<(), Failed> {
// either return error or panic!, cargo nextest will still show as `PASS`
//panic!();
Err("Error, this doesn't work".into())
} |
Ah thanks for the extended report. This is a bug in libtest-mimic. |
I've proposed LukasKalbertodt/libtest-mimic#30 in libtest-mimic which will fix this. For now, please avoid using |
Thank you for looking into this! |
This should be fixed with a libtest-mimic update. Thanks for the report! |
I'm using a custom test harness using
libtest-mimic
(version 0.6.0), but when one of those tests fails,cargo nextest run
still reports it as passed.The text was updated successfully, but these errors were encountered: