Is there any way to have IntelliJ run the current MyTest.java file I'm looking at?
Thanks
Press ⌃⇧R (macOS), or Ctrl+Shift+F10 (Windows/Linux), to run the file in its current context.
In your production code in the editor, place the caret at the class for which you want to create a test, press Alt+Enter , and select Create Test. In the Create Test dialog, select the library that you want to use. If you don't have the necessary library yet, you will be prompted to download it. To do that, click Fix.
Yeah, you can either:
Run 'MyTest'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With