When IDEA conducts unit testing, the solution to the problem cannot be entered in the console?

In IDEA, when encountering a unit test, it cannot receive input from the console.

Table of contents

1. Menu bar Help->Edit Custom VM Options 

2. Add the following code

3. Restart IDEA


1. Menu bar Help->Edit Custom VM Options 

2. Add the following code

-Deditable.java.test.console=true

3. Restart IDEA

IDEA must be restarted to take effect.

Guess you like

Origin blog.csdn.net/qq_19309473/article/details/130550604