Create a separate folder for tests (src folder. The name of this folder depends on the test framework you are using.) next to the
On theProject Structure dialog page, mark the new folder as a test folder, see Configuring Folders within a Content Root.
For each production file, create a separate test file by choosing (on the context menu of the folder for tests. The format of the test file name depends on the test framework you are using.