Intellij Idea Create Test Tutorial: 8.1 Project Creation

You might also like

Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 1

Chapter 8

IntelliJ IDEA Create Test Tutorial


IntelliJ IDEA is one of the most used Java IDE. If we want to create tests for our IntelliJ project, it may not be
very intuitive, so,
in this tutorial we will see how to create them.
For this tutorial, we will use:
• IntelliJ IDEA 2016.2.2 Community Edition (free and open source).
• Linux Mint 18.
You can download the IDE from the official JetBrains website, available for Linux, Windows and MacOS.

8.1 Project creation


If it is the first time you open IntelliJ IDEA, you will see that it suggests you to create a new project.
Otherwise, create a new file
selecting "File/New/Project".
In the new window, you have to select "Java" as the project type, and then select the SDK for the project, as
shown in the image
below.

Then, just select the name for the project, and finish the creation.
Once the project is created, in the explorer (left part), right click the root folder, the one with the folder name.
Select "New/Folder".
Give the folder the name you want; "test" is the standard name for test directory.
Now, right click the tests folder, and select "Mark directory as/Test Sources Root".

You might also like