-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
parse more largely from stdout and not jus stderr #140
Conversation
Due to #124 especially, we're more likely to receive test failure abstracts on stdout and not just stderr Fix #317
As this PR may introduce regressions, I'd welcome tests. |
in main.rs I added: #[cfg(test)]
mod tests {
#[test]
fn test_1() {
assert!(false);
}
#[test]
fn test_2() {
assert!(false);
}
#[test]
fn test_3() {
assert!(false);
}
#[test]
fn test_4() {
assert!(false);
}
#[test]
fn test_5() {
assert!(false);
}
#[test]
fn test_6() {
assert!(false);
}
#[test]
fn test_7() {
assert!(false);
}
#[test]
fn test_8() {
assert!(false);
}
#[test]
fn test_9() {
assert!(false);
}
#[test]
fn test_10() {
assert!(false);
}
#[test]
fn test_11() {
assert!(false);
}
#[test]
fn test_12() {
assert!(false);
}
#[test]
fn test_13() {
assert!(false);
}
#[test]
fn test_14() {
assert!(false);
}
#[test]
fn test_15() {
assert!(false);
}
#[test]
fn test_16() {
assert!(false);
}
#[test]
fn test_17() {
assert!(false);
}
#[test]
fn test_18() {
assert!(false);
}
#[test]
fn test_19() {
assert!(false);
}
#[test]
fn test_20() {
assert!(false);
}
} cargo run -- test works fine
scrolling shows the rest:
In bacon.toml I added: [jobs.nextest]
command = ["cargo", "nextest", "run", "--color", "always"]
need_stdout = true cargo run --nextest is pretty odd:
|
nextest would need an adapted parsing, which could be done but there's a bigger problems: |
This PR works for me! I'm on macOS Alacritty, using the default test runner. |
This PR works for me, too. (macOS, WezTerm terminal, default test runner) |
I typically use In case it is helpful, I also tried this PR with nextest:
Then added the following to [jobs.nextest]
command = [
"cargo", "nextest", "run", "--color", "always",
]
need_stdout = true With a test suite where all tests pass, I do get colored output: Here's what bacon reports when two tests fail: Again, output is colorized, but bacon does not yet parse nextest's output correctly—similar to what @Canop said above in #140 (comment). That said, maybe nextest support should be moved into a separate GH issue? |
Yes. |
Due to #124 especially, we're more likely to receive test failure abstracts on stdout and not just stderr.
With this PR, lines from stdout are better parsed.
Fix #137