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.
请先登录再写评论。
Please check https://www.jetbrains.com/idea/help/creating-tests.html .
I can see the available options for unit tests.
Thank you much.
-Dhimant.
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
See https://www.jetbrains.com/idea/help/content-root.html .
Add a Test source root.
Serge,
Thanks so much.
-Dhimant.