Skip to content
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

Cargo test, tests that print to console do not finish in IDE #10846

Open
Maksim20023 opened this issue Sep 7, 2023 · 0 comments
Open

Cargo test, tests that print to console do not finish in IDE #10846

Maksim20023 opened this issue Sep 7, 2023 · 0 comments

Comments

@Maksim20023
Copy link
Collaborator

Environment

  • IntelliJ Rust plugin version: 0.4.200.5421-232
  • Rust toolchain version: 1.71
  • IDE name and version: IntelliJ IDEA 2023.2.1 (Community Edition)
  • Operating system: OS Windows 10(amd64) v10.0

Problem description

My project includes rlua and the lua code prints to console, so changing the code to not write is not really an option.

image1-3

Using cargo test from console (PowerShell) reports the result correctly:

image2

Steps to reproduce

I guess minimum example would be something like this test:`

#[test]
fn just_print() {
    std::io::stdout().write(b"just write something").unwrap();
}

Originally posted here: IDEA-331418

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant