Ignore frontend directories when running tests on backend

Answered

When running backend unit tests in Intellij IDEA for a project having both front- and backend code it seems to take a considerable time to run the backend tests. Is there a way to totally ignore frontend specific directories when running backend tests? 

0
3 comments
Hi Joachim,

Can you provide more details about the project? Is it Maven/Gradle-based plus JUnit? A screenshot of the project structure might be helpful.
0

It is gradle based.

Project structure is similar to this:

- project 1
- project 2

- project x, x > 15
- front-end-project

0

Hi, please try  right-clicking the root module and then click Run 'All Tests', then change the options of Directories to include the folders in which you want to run the test https://www.jetbrains.com/help/idea/2024.2/run-debug-configuration-junit.html

  • All in directory: run all unit tests in a directory. Specify the directory in the field to the right.
0

Please sign in to leave a comment.