Unit Tests Generation in 14.1

Hi All,

Just started using IntelliJ, my first installed version was 14.0.3, and just updated with 14.1 now.

I need to be able to create a unit tests and just show on the features list that latest version should just do that.

However I could not find how exactly I can do that.

Can someone provide more information on the procedure / recommendations etc?


Thanks,

DP.

5 comments
Comment actions Permalink

I can see the available options for unit tests.

Thank you much.


-Dhimant.
0
Comment actions Permalink

Hi,

Now I'm getting the following error, while trying to run "Create test" on the class name with ALT+ENTER.

I am getting error message "No Test Roots Found".
Create the test in the same source root?


I did lookup the documentation here: https://www.jetbrains.com/idea/help/creating-tests.html
But it doesn't outline steps required to setup this "Test Roots".

I also have jUnit and other libraries already added to the project.

My package structure looks like this:
     class to be tested:  org.mySite.dbConnections.H2Connect;
     TestClass:              org.mySite.Tests.jUnit.dbConnections.H2ConnectTest;

I consider myself Java newbie, and I tempted to go back to old style of programming, but want to follow the gurus to do the things the right way.

Please help.

Thanks,
DP

0
Comment actions Permalink

Serge,

Thanks so much.

-Dhimant.

0

Please sign in to leave a comment.