How to create unit tests for all methods with a single shortcut?

Answered

Hi,

After pressing ALT + ENTER, a window is shown where I can select individual methods for which I want to create unit tests. But how do I create a test method for all of them with a single click/shortcut?

0
4 comments

Hello,

Have you tried to press Alt+Enter on class name and select "Create Test"?

0

Hi,

Yes of course. I have done that and I can select the methods I want to create tests for. But I have to select them one at a time....How can I select them all?

0

You could select any method, press "Ctrl+A" to select all of them and then press spacebar to check them all.

2

Wow, thank you. I didn't think it was sooo easy.

0

Please sign in to leave a comment.