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?
Please sign in to leave a comment.
Can you provide more details about the project? Is it Maven/Gradle-based plus JUnit? A screenshot of the project structure might be helpful.
It is gradle based.
Project structure is similar to this:
- project 1
- project 2
…
- project x, x > 15
- front-end-project
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