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

IntelliJ IDEA - Maven test run not showing progress bar #144

Open
lppedd opened this issue Sep 15, 2022 · 5 comments
Open

IntelliJ IDEA - Maven test run not showing progress bar #144

lppedd opened this issue Sep 15, 2022 · 5 comments

Comments

@lppedd
Copy link

lppedd commented Sep 15, 2022

IntelliJ IDEA info:

IntelliJ IDEA 2022.2.2 (Ultimate Edition)
Build #IU-222.4167.29, built on September 13, 2022
Runtime version: 17.0.4+7-b469.53 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
Registry:
    lcd.contrast.value=225

The progress bar is always printed after the process terminates.

image

@lppedd
Copy link
Author

lppedd commented Sep 15, 2022

Additional detail: happens only when ASCII style is used.

@ctongfei
Copy link
Owner

I am aware of this bug: the test window does not flush regularly. I have not found a way to make it work properly in the unit test windows of IntelliJ.

@lppedd
Copy link
Author

lppedd commented Sep 19, 2022

@ctongfei FYI, since I need to test a CLI, I've changed the consumer of the progress bar to a "sequential one", meaning one that does not override the previous output. Sys.out.println works as expected, but not Sys.out.print.

@ctongfei
Copy link
Owner

Yes, it works if it is a "sequential one" but it'll look bad.

@muyuanjin
Copy link

muyuanjin commented Mar 25, 2024

IntelliJ —— Help | Edit Custom VM options and add the line -Deditable.java.test.console=true and restarting IntelliJ may be helpful.
Another case is that if the cpu is busy, the progress bar refresh task may be unable to refresh the progress because it can't getting the CPU cycle.

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

No branches or pull requests

3 participants